mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): modal race condition (#19625)
* fix(web): modal race condition * fix: translation * fix: translation
This commit is contained in:
parent
181a7e115f
commit
53020852ec
5 changed files with 53 additions and 51 deletions
|
|
@ -27,7 +27,7 @@ class ModalManager {
|
|||
const deferred = new Promise<StripValueIfOptional<K>>((resolve) => {
|
||||
onClose = async (...args: [StripValueIfOptional<K>]) => {
|
||||
await unmount(modal);
|
||||
resolve(args?.[0]);
|
||||
setTimeout(() => resolve(args?.[0]), 0);
|
||||
};
|
||||
|
||||
modal = mount(Component, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue