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)