Skip to content

Commit a75e9f8

Browse files
committed
Make sure upload dialog is closed on error
1 parent 3b6c8d0 commit a75e9f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ const vfsActionFactory = (core, proc, win, dialog, state) => {
294294
}).then((result) => {
295295
d.destroy();
296296
return result;
297+
}).catch((error) => {
298+
d.destroy();
299+
throw error;
297300
});
298301
};
299302

0 commit comments

Comments
 (0)