From 4c062520c763fd69e88b8f74b08d13bacf7bdca6 Mon Sep 17 00:00:00 2001 From: Sofie Hofmann <29145005+sofie29@users.noreply.github.com> Date: Tue, 27 Jul 2021 13:58:56 +0200 Subject: [PATCH] TSK-1679: Prevent multiple calls of getClassifications --- .../shared/store/classification-store/classification.state.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/app/shared/store/classification-store/classification.state.ts b/web/src/app/shared/store/classification-store/classification.state.ts index 18ec69fa7..7a7cc5346 100644 --- a/web/src/app/shared/store/classification-store/classification.state.ts +++ b/web/src/app/shared/store/classification-store/classification.state.ts @@ -99,6 +99,7 @@ export class ClassificationState implements NgxsAfterBootstrap { getClassifications(ctx: StateContext): Observable { const { selectedClassificationType } = ctx.getState(); return this.domainService.getSelectedDomain().pipe( + take(1), mergeMap((domain) => { const filter: ClassificationQueryFilterParameter = { domain: [domain],