Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Dec 1, 2016
1 parent 8c62da4 commit 1566f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/javascripts/SqlLab/reducers.js
Expand Up @@ -134,7 +134,7 @@ export const sqlLabReducer = function (state, action) {
let newState = Object.assign({}, state);
if (action.query.sqlEditorId) {
const qe = getFromArr(state.queryEditors, action.query.sqlEditorId);
if (qe.latestQueryId) {
if (qe.latestQueryId && state.queries[qe.latestQueryId]) {
const newResults = Object.assign(
{}, state.queries[qe.latestQueryId].results, { data: [], query: null });
const q = Object.assign({}, state.queries[qe.latestQueryId], { results: newResults });
Expand Down

0 comments on commit 1566f9f

Please sign in to comment.