close modal after file upload, remove debugger
This commit is contained in:
parent
ceccef3cc3
commit
91f7cc47a0
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue