import { takeWhile } from 'rxjs/operators';
 
this.apiClientService.getShipTypeDefaults()
      .pipe(takeWhile(() => this.aliveSubscription))
      .subscribe((data: IShipTypeDefaultsResponse[]) => {
        if (!data) return;
        })