small fix plan-editor

This commit is contained in:
mchouliara 2024-09-24 10:41:38 +03:00
parent 88340e3580
commit 453cde406e
1 changed files with 10 additions and 7 deletions

View File

@ -210,6 +210,8 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
super.ngOnInit();
if (this.isNew === false && this.step === 0) this.nextStep();
if(this.item?.id){
this.formAnnotationService.init(this.item.id, AnnotationEntityType.Plan);
this.formAnnotationService.getAnnotationCountObservable().pipe(takeUntil(this._destroyed)).subscribe((annotationsPerAnchor: Map<string, number>) => {
this.annotationsPerAnchor = annotationsPerAnchor;
@ -219,6 +221,7 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
if (anchorId && anchorId == this.item.id?.toString()) this.showAnnotations(anchorId);
});
}
}
ngAfterViewInit(): void {