diff --git a/src/actions/index.js b/src/actions/index.js index 7d9b7002..b3dc14bc 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -57,9 +57,9 @@ const regraph = () => { dispatch(requestCells(uri.search())).then(res => { if (res.error) { - dispatch({ type: "regraph success" }); - } else { dispatch({ type: "regraph error" }); + } else { + dispatch({ type: "regraph success" }); } }); };