Skip to content

Commit cd0bda2

Browse files
authored
Update filebrowser.js
1 parent 3bbe033 commit cd0bda2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

filebrowser.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,15 @@ function createNewFileInHTML() {
18021802
searchButton.classList.remove('hidden');
18031803

18041804
}
1805+
1806+
1807+
// if a pending promise exists,
1808+
// await it
1809+
if (pendingPromise) {
1810+
1811+
await pendingPromise;
1812+
1813+
}
18051814

18061815

18071816
// create commit

0 commit comments

Comments
 (0)