fix(ags notif): get rid of child is null error
This commit is contained in:
parent
8298e0bf97
commit
d510bf7419
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ export const Draggable = ({
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
command();
|
command();
|
||||||
box.destroy();
|
box.get_parent().destroy();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Popups = () => Box({
|
||||||
box.get_parent().reveal_child = false;
|
box.get_parent().reveal_child = false;
|
||||||
|
|
||||||
timeout(200, () => {
|
timeout(200, () => {
|
||||||
if (box._map.get(id).interval) {
|
if (box._map.get(id)?.interval) {
|
||||||
source_remove(box._map.get(id).interval);
|
source_remove(box._map.get(id).interval);
|
||||||
box._map.get(id).interval = undefined;
|
box._map.get(id).interval = undefined;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue