mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 17:23:20 +03:00
fix(web): modal race condition (#19625)
* fix(web): modal race condition * fix: translation * fix: translation
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user