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,