Skip to content

Commit

Permalink
Update view.ts
Browse files Browse the repository at this point in the history
In Angular you sometimes run into complete Flow Errors when Element was already unmounted and it ttries to unmount it again
  • Loading branch information
LNAhri committed Jan 25, 2024
1 parent 2279042 commit 91d57b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6-angular-shape/src/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export class AngularShapeView extends NodeView<AngularShape> {
}

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)
Expand Down

0 comments on commit 91d57b3

Please sign in to comment.