From 9c2870e995956bf5aa0a39e56876a7ef7ca78a4a Mon Sep 17 00:00:00 2001 From: bkmartinjr Date: Tue, 29 May 2018 21:38:47 -0700 Subject: [PATCH] fix logic inversion on regraph --- src/actions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" }); } }); };