From 7c8714f55b3fdad6ff59dc1d55b1f290f014b31b Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Fri, 24 Nov 2023 16:01:12 +0000 Subject: [PATCH] fix: fixed hogql insights refresh button (#18892) Fixed hogql insights refresh button --- .../src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx b/frontend/src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx index be5b3044e2297..164525d0e3e49 100644 --- a/frontend/src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx +++ b/frontend/src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx @@ -16,7 +16,7 @@ export function ComputationTimeWithRefresh({ disableRefresh }: { disableRefresh? usePeriodicRerender(15000) // Re-render every 15 seconds for up-to-date `insightRefreshButtonDisabledReason` - if (!response || !response.result) { + if (!response || (!response.result && !response.results)) { return null }