diff --git a/superset/assets/javascripts/SqlLab/reducers.js b/superset/assets/javascripts/SqlLab/reducers.js index 04a7e525dccec..e6eb073ce6579 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; }