Clear files after getting the value

This commit is contained in:
toasted-nutbread 2019-12-15 15:51:30 -05:00
parent 8c9416d70d
commit db7e179626

View File

@ -557,6 +557,9 @@ async function onDictionaryPurge(e) {
}
async function onDictionaryImport(e) {
const files = [...e.target.files];
e.target.value = null;
const dictFile = $('#dict-file');
const dictControls = $('#dict-importer').hide();
const dictProgress = $('#dict-import-progress').show();
@ -577,8 +580,6 @@ async function onDictionaryImport(e) {
}
};
const files = [...e.target.files];
const optionsFull = await apiOptionsGetFull();
const importDetails = {