Skip to content
Snippets Groups Projects
Commit 730383cd authored by netpro2k's avatar netpro2k
Browse files

Clean up warning on form submission

parent 4587c842
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,8 @@ export default class CreateObjectDialog extends Component {
});
};
onCreateClicked = () => {
onCreateClicked = e => {
e.preventDefault();
this.props.onCreateObject(this.state.file || this.state.url || DEFAULT_OBJECT_URL);
this.props.onCloseDialog();
};
......
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