Skip to content

Commit

Permalink
improve new observation init
Browse files Browse the repository at this point in the history
  • Loading branch information
bastyen committed Jul 18, 2024
1 parent d01954d commit 348ba06
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 348ba06

Please sign in to comment.