From e0791ed1c06bace6d3ad5f2eab2587585a8dfc39 Mon Sep 17 00:00:00 2001 From: James Kerr Date: Tue, 24 Oct 2023 10:52:08 -0700 Subject: [PATCH] Fix TS Errors --- apps/zui/src/core/query/run.ts | 2 +- apps/zui/src/views/histogram-pane/run-query.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/zui/src/core/query/run.ts b/apps/zui/src/core/query/run.ts index 94b5b95991..b1cbddfabe 100644 --- a/apps/zui/src/core/query/run.ts +++ b/apps/zui/src/core/query/run.ts @@ -45,7 +45,7 @@ function run(id: string): Thunk> { : {...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 diff --git a/apps/zui/src/views/histogram-pane/run-query.ts b/apps/zui/src/views/histogram-pane/run-query.ts index f8db77b5a2..3fce08d2f2 100644 --- a/apps/zui/src/views/histogram-pane/run-query.ts +++ b/apps/zui/src/views/histogram-pane/run-query.ts @@ -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