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) {
|
export function createFile(formProps) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
debugger; // eslint-disable-line
|
|
||||||
const state = getState();
|
const state = getState();
|
||||||
if (state.project.id) {
|
if (state.project.id) {
|
||||||
const postParams = {
|
const postParams = {
|
||||||
|
@ -26,6 +25,9 @@ export function createFile(formProps) {
|
||||||
type: ActionTypes.CREATE_FILE,
|
type: ActionTypes.CREATE_FILE,
|
||||||
...response.data
|
...response.data
|
||||||
});
|
});
|
||||||
|
dispatch({
|
||||||
|
type: ActionTypes.HIDE_MODAL
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch(response => dispatch({
|
.catch(response => dispatch({
|
||||||
type: ActionTypes.ERROR,
|
type: ActionTypes.ERROR,
|
||||||
|
|
Loading…
Reference in a new issue