Skip to content

Commit

Permalink
Fix TS Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Oct 24, 2023
1 parent e09217f commit e0791ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/zui/src/core/query/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function run(id: string): Thunk<Promise<ResultStream | null>> {
: {...prevShapes, ...shapesMap}
dispatch(Results.setValues({id, tabId, values}))
dispatch(Results.setShapes({id, tabId, shapes}))
}, {})
})
await res.promise
dispatch(Results.success({id, tabId, count: res.rows.length}))
return res
Expand Down
2 changes: 1 addition & 1 deletion apps/zui/src/views/histogram-pane/run-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function runHistogramQuery(api: ZuiApi) {
const resp = await api.query(query, {id, tabId})
api.dispatch(Histogram.setInterval({unit, number, fn}))
api.dispatch(Histogram.setRange(range))
resp.collect(collect, {})
resp.collect(collect)
getNullTimeCount()
getMissingTimeCount()
await resp.promise
Expand Down

0 comments on commit e0791ed

Please sign in to comment.