Skip to content

Commit

Permalink
fix(staticarea): prevent error when deleting static area item (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Mar 23, 2020
1 parent f605566 commit 5a99536
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/base/src/StaticAreaItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class StaticAreaItem {
* @protected
*/
_removeFragmentFromStaticArea() {
if (!this.staticAreaItemDomRef) {
return;
}

const staticArea = getStaticAreaInstance();

staticArea.removeChild(this.staticAreaItemDomRef);
Expand Down

0 comments on commit 5a99536

Please sign in to comment.