Delete callbacks after calling them
This commit is contained in:
parent
60f5d3c446
commit
8eb4b94ccd
1 changed files with 2 additions and 0 deletions
|
@ -225,6 +225,7 @@ export function initGalaxy({
|
|||
} else {
|
||||
loadCallbacks[slot]?.accept({ slot, content, label });
|
||||
}
|
||||
delete loadCallbacks[slot];
|
||||
break;
|
||||
}
|
||||
case "saved": {
|
||||
|
@ -234,6 +235,7 @@ export function initGalaxy({
|
|||
} else {
|
||||
saveCallbacks[slot]?.accept(slot);
|
||||
}
|
||||
delete saveCallbacks[slot];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue