diff --git a/superset/assets/javascripts/SqlLab/reducers.js b/superset/assets/javascripts/SqlLab/reducers.js
index <HASH>..<HASH> 100644
--- a/superset/assets/javascripts/SqlLab/reducers.js
+++ b/superset/assets/javascripts/SqlLab/reducers.js
@@ -242,10 +242,9 @@ export const sqlLabReducer = function (state, action) {
       let change = false;
       for (const id in action.alteredQueries) {
         const changedQuery = action.alteredQueries[id];
-        if (
-            state.queries[id].state !== 'stopped' &&
-            (!state.queries.hasOwnProperty(id) ||
-            state.queries[id].changedOn !== changedQuery.changedOn)) {
+        if (!state.queries.hasOwnProperty(id) ||
+            (state.queries[id].changedOn !== changedQuery.changedOn &&
+            state.queries[id].state !== 'stopped')) {
           newQueries[id] = Object.assign({}, state.queries[id], changedQuery);
           change = true;
         }
Check if the query is in state first. (#<I>)