mirror of
https://github.com/outline/outline.git
synced 2025-03-29 22:32:51 +00:00
fix: Cannot pick the same file twice for import
This commit is contained in:
@ -124,6 +124,8 @@ function CollectionMenu({
|
||||
} catch (err) {
|
||||
toast.error(err.message);
|
||||
throw err;
|
||||
} finally {
|
||||
ev.target.value = "";
|
||||
}
|
||||
},
|
||||
[history, collection.id, documents]
|
||||
|
@ -407,6 +407,8 @@ function DocumentMenu({
|
||||
} catch (err) {
|
||||
toast.error(err.message);
|
||||
throw err;
|
||||
} finally {
|
||||
ev.target.value = "";
|
||||
}
|
||||
},
|
||||
[history, collection, documents, document.id]
|
||||
|
Reference in New Issue
Block a user