fix(ags notif): get rid of child is null error

This commit is contained in:
matt1432 2023-09-21 00:40:16 -04:00
parent 8298e0bf97
commit d510bf7419
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ export const Draggable = ({
}
setTimeout(() => {
command();
box.destroy();
box.get_parent().destroy();
}, 1000);
}
else {

View file

@ -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;
}