chore: type ResultSet.tsx (#10226)

This commit is contained in:
Erik Ritter
2020-07-02 10:12:31 -07:00
committed by GitHub
parent 0afa15138b
commit 4281ad5486
6 changed files with 117 additions and 64 deletions

View File

@@ -324,16 +324,14 @@ export default function sqlLabReducer(state = {}, action) {
});
},
[actions.QUERY_SUCCESS]() {
let rows;
if (action.results.data) {
rows = action.results.data.length;
}
const alts = {
endDttm: now(),
progress: 100,
results: action.results,
rows,
rows: action?.results?.data?.length,
state: 'success',
tempSchema: action?.results?.query?.tempSchema,
tempTable: action?.results?.query?.tempTable,
errorMessage: null,
cached: false,
};