From 66a1a4c66d13e0cc1bcf83f044203470a29cf043 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Fri, 10 Feb 2023 04:12:45 -0800 Subject: [PATCH] Fix when component is undefined (#2271) --- src/ui/box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/box.js b/src/ui/box.js index ceff49037..97e56233c 100644 --- a/src/ui/box.js +++ b/src/ui/box.js @@ -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 {