From 91d57b36fe3e95d06d3969620a59edc7c3711fa9 Mon Sep 17 00:00:00 2001 From: LNAhri Date: Thu, 25 Jan 2024 16:19:47 +0100 Subject: [PATCH] Update view.ts In Angular you sometimes run into complete Flow Errors when Element was already unmounted and it ttries to unmount it again --- packages/x6-angular-shape/src/view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x6-angular-shape/src/view.ts b/packages/x6-angular-shape/src/view.ts index 63147531a1a..e4144a1a053 100644 --- a/packages/x6-angular-shape/src/view.ts +++ b/packages/x6-angular-shape/src/view.ts @@ -44,9 +44,9 @@ export class AngularShapeView extends NodeView { } protected renderAngularContent(): void { - this.unmountAngularContent() const container = this.getNodeContainer() if (container) { + this.unmountAngularContent() const node = this.cell const { injector, content } = registerInfo.get(node.shape)! const viewContainerRef = injector.get(ViewContainerRef)