close modal after file upload, remove debugger

This commit is contained in:
catarak 2016-07-19 22:29:54 -04:00
parent ceccef3cc3
commit 91f7cc47a0

View file

@ -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,