@@ -180,6 +180,7 @@ class Editor extends React.Component {
break;
}
+ if (file === null) return;
this.setState({
uploadVisible: true