fix(sql lab): display the 'View Results' button consistently in the history tab on sync mode (#19362)

* fix(sql lab): display the 'View Results' button in the history tab when running sync queries

* pr comment
This commit is contained in:
Diego Medina
2022-04-13 12:20:32 -04:00
committed by GitHub
parent c8304a2821
commit 6d5d03e592
3 changed files with 13 additions and 2 deletions

View File

@@ -328,8 +328,10 @@ export default function sqlLabReducer(state = {}, action) {
if (action.query.state === 'stopped') {
return state;
}
const alts = {
endDttm: now(),
resultsKey: action?.results?.query?.resultsKey,
progress: 100,
results: action.results,
rows: action?.results?.query?.rows || 0,