Skip to content

Commit

Permalink
Fix when component is undefined (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Feb 10, 2023
1 parent 60b5d72 commit 66a1a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Renderer {
}

remove(containerId) {
if (this.modals[containerId]) {
if (this.modals[containerId] && this.modals[containerId].component) {
this.modals[containerId].component.hide();
setTimeout(() => this.unmount(containerId), 1000);
} else {
Expand Down

0 comments on commit 66a1a4c

Please sign in to comment.