diff --git a/packages/x6/src/renderer/scheduler.ts b/packages/x6/src/renderer/scheduler.ts index 7ac065c4cab..a8765e95c17 100644 --- a/packages/x6/src/renderer/scheduler.ts +++ b/packages/x6/src/renderer/scheduler.ts @@ -318,9 +318,9 @@ export class Scheduler extends Disposable { } protected resetViews() { - this.willRemoveViews = { ...this.views } - Object.keys(this.willRemoveViews).forEach((id) => { - const viewItem = this.willRemoveViews[id] + const willRemoveViews = { ...this.views, ...this.willRemoveViews } + Object.keys(willRemoveViews).forEach((id) => { + const viewItem = willRemoveViews[id] if (viewItem) { this.removeView(viewItem.view) }