diff --git a/superset-frontend/package.json b/superset-frontend/package.json index e8799d57c4c9e..3c9f75572d567 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -133,7 +133,7 @@ "classnames": "^2.2.5", "core-js": "^3.6.5", "d3-array": "^1.2.4", - "d3-color": "^3.1.0", + "d3-color": "^1.2.0", "d3-scale": "^2.1.2", "dom-to-image-more": "^2.10.1", "emotion-rgba": "0.0.9", @@ -350,11 +350,11 @@ "node": "^16.9.1", "npm": "^7.5.4 || ^8.1.2" }, - "readme": "ERROR: No README data found!", - "_id": "superset@0.0.0-dev", "overrides": { "yosay": { "ansi-regex": "^4.1.1" } - } + }, + "readme": "ERROR: No README data found!", + "_id": "superset@0.0.0-dev" } diff --git a/superset-frontend/src/SqlLab/reducers/sqlLab.js b/superset-frontend/src/SqlLab/reducers/sqlLab.js index 11310e5b9ac4d..915bb3f6b730a 100644 --- a/superset-frontend/src/SqlLab/reducers/sqlLab.js +++ b/superset-frontend/src/SqlLab/reducers/sqlLab.js @@ -614,6 +614,10 @@ export default function sqlLabReducer(state = {}, action) { (state.queries[id].state !== QueryState.STOPPED && state.queries[id].state !== QueryState.FAILED) ) { + const changedOn = Date.parse(changedQuery.changed_on); + if (changedOn > queriesLastUpdate) { + queriesLastUpdate = changedOn; + } const prevState = state.queries[id]?.state; const currentState = changedQuery.state; newQueries[id] = {