Skip to content

Commit

Permalink
Angular Issues: view.js:59 Uncaught TypeError: Cannot set properties …
Browse files Browse the repository at this point in the history
…of undefined (setting 'innerHTML') (#4187)

Update view.ts

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 authored Feb 27, 2024
1 parent f02a90f commit 705fbdb
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 705fbdb

Please sign in to comment.