fix(sql lab): View result button is not showing consistently (#20164)

This commit is contained in:
Diego Medina
2022-06-03 00:53:59 -04:00
committed by GitHub
parent a020f75a97
commit 92057858c2
2 changed files with 7 additions and 0 deletions

View File

@@ -340,6 +340,12 @@ export default function sqlLabReducer(state = {}, action) {
errorMessage: null,
cached: false,
};
const resultsKey = action?.results?.query?.resultsKey;
if (resultsKey) {
alts.resultsKey = resultsKey;
}
return alterInObject(state, 'queries', action.query, alts);
},
[actions.QUERY_FAILED]() {