Skip to content
Snippets Groups Projects
Unverified Commit 777b68f3 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #2691 from LLK/fix-finally-bug

Fix project loader cleanup function. Safari does not support the use of .finally
parents fb74405c fb91d570
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