From 91f7cc47a087d99fe8710ab3ddfb618a109e52a9 Mon Sep 17 00:00:00 2001 From: catarak Date: Tue, 19 Jul 2016 22:29:54 -0400 Subject: [PATCH] close modal after file upload, remove debugger --- client/modules/IDE/actions/files.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/modules/IDE/actions/files.js b/client/modules/IDE/actions/files.js index 748d5f10..729bd8a9 100644 --- a/client/modules/IDE/actions/files.js +++ b/client/modules/IDE/actions/files.js @@ -13,7 +13,6 @@ export function updateFileContent(name, content) { export function createFile(formProps) { return (dispatch, getState) => { - debugger; // eslint-disable-line const state = getState(); if (state.project.id) { const postParams = { @@ -26,6 +25,9 @@ export function createFile(formProps) { type: ActionTypes.CREATE_FILE, ...response.data }); + dispatch({ + type: ActionTypes.HIDE_MODAL + }); }) .catch(response => dispatch({ type: ActionTypes.ERROR,