Browse Source
Merge pull request #3269 from vvlladd28/bug/bulk-import
[3.0] Correction bulk provision without telemetry
pull/3272/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
10 deletions
-
ui-ngx/src/app/core/http/entity.service.ts
|
|
|
@ -937,16 +937,20 @@ export class EntityService { |
|
|
|
); |
|
|
|
observables.push(observable); |
|
|
|
} |
|
|
|
return forkJoin(observables).pipe( |
|
|
|
map((response) => { |
|
|
|
const hasError = response.filter((status) => status === 'error').length > 0; |
|
|
|
if (hasError) { |
|
|
|
throw Error(); |
|
|
|
} else { |
|
|
|
return response; |
|
|
|
} |
|
|
|
}) |
|
|
|
); |
|
|
|
if (observables.length) { |
|
|
|
return forkJoin(observables).pipe( |
|
|
|
map((response) => { |
|
|
|
const hasError = response.filter((status) => status === 'error').length > 0; |
|
|
|
if (hasError) { |
|
|
|
throw Error(); |
|
|
|
} else { |
|
|
|
return response; |
|
|
|
} |
|
|
|
}) |
|
|
|
); |
|
|
|
} else { |
|
|
|
return of(null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private getStateEntityInfo(filter: EntityAliasFilter, stateParams: StateParams): {entityId: EntityId} { |
|
|
|
|