Skip to content

Commit

Permalink
fix: 修正 destroy 后 unmount 报错 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
squallliu authored Sep 8, 2022
1 parent fb8d92f commit 7c31393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wujie-core/src/shadow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class WujieApp extends HTMLElement {

disconnectedCallback(): void {
const sandbox = getWujieById(this.getAttribute(WUJIE_DATA_ID));
sandbox.unmount();
sandbox?.unmount();
}
}

Expand Down

0 comments on commit 7c31393

Please sign in to comment.