fix: Cannot pick the same file twice for import

This commit is contained in:
Tom Moor
2024-11-06 23:28:23 -05:00
parent 28cc83ad05
commit 24548dc7ee
2 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,8 @@ function CollectionMenu({
} catch (err) {
toast.error(err.message);
throw err;
} finally {
ev.target.value = "";
}
},
[history, collection.id, documents]

View File

@ -407,6 +407,8 @@ function DocumentMenu({
} catch (err) {
toast.error(err.message);
throw err;
} finally {
ev.target.value = "";
}
},
[history, collection, documents, document.id]