Skip to content

Commit

Permalink
Safari does not support the use of .finally
Browse files Browse the repository at this point in the history
  • Loading branch information
kchadha committed Jul 20, 2018
1 parent fb74405 commit fb91d57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/containers/project-loader.jsx
Expand Up @@ -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
Expand Down

0 comments on commit fb91d57

Please sign in to comment.