Skip to content
Snippets Groups Projects
Commit fb91d570 authored by Karishma Chadha's avatar Karishma Chadha
Browse files

Safari does not support the use of .finally

parent fb74405c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment