Skip to content

Commit 5a99536

Browse files
authored
fix(staticarea): prevent error when deleting static area item (#1335)
1 parent f605566 commit 5a99536

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/base/src/StaticAreaItem.js

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class StaticAreaItem {
4242
* @protected
4343
*/
4444
_removeFragmentFromStaticArea() {
45+
if (!this.staticAreaItemDomRef) {
46+
return;
47+
}
48+
4549
const staticArea = getStaticAreaInstance();
4650

4751
staticArea.removeChild(this.staticAreaItemDomRef);

0 commit comments

Comments
 (0)