Safari does not support the use of .finally

This commit is contained in:
Karishma Chadha committed 2018-07-20 09:31:13 -04:00
1 parent fb74405ceb
commit fb91d57053
1 file changed
+4 -2
+4 -2
View File
@@ -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