TSK-1679: Prevent multiple calls of getClassifications

This commit is contained in:
Sofie Hofmann 2021-07-27 13:58:56 +02:00
parent 523b610813
commit 4c062520c7
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ export class ClassificationState implements NgxsAfterBootstrap {
getClassifications(ctx: StateContext<ClassificationStateModel>): Observable<any> {
const { selectedClassificationType } = ctx.getState();
return this.domainService.getSelectedDomain().pipe(
take(1),
mergeMap((domain) => {
const filter: ClassificationQueryFilterParameter = {
domain: [domain],