diff --git a/src/containers/project-loader.jsx b/src/containers/project-loader.jsx index 1055f70cb68c9bcf45f92c8591d2dfc9edbea063..507b716523796e14fb9b73fbb93cca44df2785f8 100644 --- a/src/containers/project-loader.jsx +++ b/src/containers/project-loader.jsx @@ -59,12 +59,14 @@ class ProjectLoader extends React.Component { action: 'Import Project File', nonInteraction: true }); + this.props.closeLoadingState(); + // Reset the file input after project is loaded + // This is necessary in case the user wants to reload a project + thisFileInput.value = null; }) .catch(error => { log.warn(error); alert(this.props.intl.formatMessage(messages.loadError)); // eslint-disable-line no-alert - }) - .finally(() => { this.props.closeLoadingState(); // Reset the file input after project is loaded // This is necessary in case the user wants to reload a project