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