Merge pull request #3269 from vvlladd28/bug/bulk-import
[3.0] Correction bulk provision without telemetry
This commit is contained in:
commit
a736490a36
@ -937,16 +937,20 @@ export class EntityService {
|
|||||||
);
|
);
|
||||||
observables.push(observable);
|
observables.push(observable);
|
||||||
}
|
}
|
||||||
return forkJoin(observables).pipe(
|
if (observables.length) {
|
||||||
map((response) => {
|
return forkJoin(observables).pipe(
|
||||||
const hasError = response.filter((status) => status === 'error').length > 0;
|
map((response) => {
|
||||||
if (hasError) {
|
const hasError = response.filter((status) => status === 'error').length > 0;
|
||||||
throw Error();
|
if (hasError) {
|
||||||
} else {
|
throw Error();
|
||||||
return response;
|
} else {
|
||||||
}
|
return response;
|
||||||
})
|
}
|
||||||
);
|
})
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return of(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getStateEntityInfo(filter: EntityAliasFilter, stateParams: StateParams): {entityId: EntityId} {
|
private getStateEntityInfo(filter: EntityAliasFilter, stateParams: StateParams): {entityId: EntityId} {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user