From d510bf7419b9632d6ad84faf2e01cc7ad73f2f4a Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 21 Sep 2023 00:40:16 -0400 Subject: [PATCH] fix(ags notif): get rid of child is null error --- config/ags/js/misc/drag.js | 2 +- config/ags/js/notifications/popup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/ags/js/misc/drag.js b/config/ags/js/misc/drag.js index c8b2b2c..3335e62 100644 --- a/config/ags/js/misc/drag.js +++ b/config/ags/js/misc/drag.js @@ -116,7 +116,7 @@ export const Draggable = ({ } setTimeout(() => { command(); - box.destroy(); + box.get_parent().destroy(); }, 1000); } else { diff --git a/config/ags/js/notifications/popup.js b/config/ags/js/notifications/popup.js index 1b9c22f..2b26d72 100644 --- a/config/ags/js/notifications/popup.js +++ b/config/ags/js/notifications/popup.js @@ -19,7 +19,7 @@ const Popups = () => Box({ box.get_parent().reveal_child = false; timeout(200, () => { - if (box._map.get(id).interval) { + if (box._map.get(id)?.interval) { source_remove(box._map.get(id).interval); box._map.get(id).interval = undefined; }