Skip to content

Commit

Permalink
handle exception caused by invalid query id
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace committed Aug 26, 2021
1 parent 3acbebd commit 147d103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/reducers/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export default function sqlLabReducer(state = {}, action) {
if (changedQuery.changedOn > queriesLastUpdate) {
queriesLastUpdate = changedQuery.changedOn;
}
const prevState = state.queries[id].state;
const prevState = state.queries[id]?.state;
const currentState = changedQuery.state;
newQueries[id] = {
...state.queries[id],
Expand Down

0 comments on commit 147d103

Please sign in to comment.