From 348ba06856b7fdb4f821ab705ba0870cc4713e77 Mon Sep 17 00:00:00 2001 From: Bastyen Date: Thu, 18 Jul 2024 11:37:29 +0200 Subject: [PATCH] improve new observation init --- .../app/pages/new-observation/new-observation.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/front-end/src/app/pages/new-observation/new-observation.component.ts b/front-end/src/app/pages/new-observation/new-observation.component.ts index 9e37fb1..ec8df66 100644 --- a/front-end/src/app/pages/new-observation/new-observation.component.ts +++ b/front-end/src/app/pages/new-observation/new-observation.component.ts @@ -161,12 +161,7 @@ export class NewObservationComponent { } } }); - - this.settingsService.settings.subscribe((settings) => { - if (settings) { - this.observationsTypes = settings.categories; - } - }); + this.observationsTypes = this.settingsService.settings.value!.categories!; } constructor() { afterNextRender(async () => {