You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Make sure that the import screen is cleared even when import fails
This commit is contained in:
@ -316,12 +316,12 @@ function useMenu(props: Props) {
|
|||||||
bridge().showErrorMessageBox(error.message);
|
bridge().showErrorMessageBox(error.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CommandService.instance().execute('hideModalMessage');
|
||||||
|
|
||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
bridge().showErrorMessageBox('There was some errors importing the notes. Please check the console for more details.');
|
bridge().showErrorMessageBox('There was some errors importing the notes. Please check the console for more details.');
|
||||||
props.dispatch({ type: 'NOTE_DEVTOOLS_SET', value: true });
|
props.dispatch({ type: 'NOTE_DEVTOOLS_SET', value: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommandService.instance().execute('hideModalMessage');
|
|
||||||
// eslint-disable-next-line @seiyab/react-hooks/exhaustive-deps -- Old code before rule was applied
|
// eslint-disable-next-line @seiyab/react-hooks/exhaustive-deps -- Old code before rule was applied
|
||||||
}, [props.selectedFolderId]);
|
}, [props.selectedFolderId]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user