From 97132c09aa4ca0416c86cb7ae3ac6e31d4a9cd05 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 17 Apr 2025 10:17:52 -0600 Subject: [PATCH] fix broken imports --- web/src/api/buster_rest/collections/queryRequests.ts | 2 +- web/src/api/buster_rest/dashboards/queryRequests.ts | 2 +- .../api/buster_rest/metrics/getMetricListQueryRequests.ts | 2 +- .../MetricViewResults/useMetricRunSQL/useMetricRunSQL.ts | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/api/buster_rest/collections/queryRequests.ts b/web/src/api/buster_rest/collections/queryRequests.ts index b5cea00bc..7e18f1af0 100644 --- a/web/src/api/buster_rest/collections/queryRequests.ts +++ b/web/src/api/buster_rest/collections/queryRequests.ts @@ -24,7 +24,7 @@ export const useGetCollectionsList = ( filters: Omit[0], 'page' | 'page_size'>, options?: Omit< UseQueryOptions>, RustApiError>, - 'queryKey' | 'queryFn' + 'queryKey' | 'queryFn' | 'initialData' > ) => { const payload = useMemo(() => { diff --git a/web/src/api/buster_rest/dashboards/queryRequests.ts b/web/src/api/buster_rest/dashboards/queryRequests.ts index 7ff903e06..0015672bd 100644 --- a/web/src/api/buster_rest/dashboards/queryRequests.ts +++ b/web/src/api/buster_rest/dashboards/queryRequests.ts @@ -616,7 +616,7 @@ export const useGetDashboardsList = ( params: Omit[0], 'page_token' | 'page_size'>, options?: Omit< UseQueryOptions>, RustApiError>, - 'queryKey' | 'queryFn' + 'queryKey' | 'queryFn' | 'initialData' > ) => { const filters = useMemo(() => { diff --git a/web/src/api/buster_rest/metrics/getMetricListQueryRequests.ts b/web/src/api/buster_rest/metrics/getMetricListQueryRequests.ts index bbfeab1bb..3ddc004e5 100644 --- a/web/src/api/buster_rest/metrics/getMetricListQueryRequests.ts +++ b/web/src/api/buster_rest/metrics/getMetricListQueryRequests.ts @@ -9,7 +9,7 @@ export const useGetMetricsList = ( params: Omit[0], 'page_token' | 'page_size'>, options?: Omit< UseQueryOptions>, RustApiError>, - 'queryKey' | 'queryFn' + 'queryKey' | 'queryFn' | 'initialData' > ) => { const compiledParams: Parameters[0] = useMemo( diff --git a/web/src/controllers/MetricController/MetricViewResults/useMetricRunSQL/useMetricRunSQL.ts b/web/src/controllers/MetricController/MetricViewResults/useMetricRunSQL/useMetricRunSQL.ts index 9f4aae378..cd840a68b 100644 --- a/web/src/controllers/MetricController/MetricViewResults/useMetricRunSQL/useMetricRunSQL.ts +++ b/web/src/controllers/MetricController/MetricViewResults/useMetricRunSQL/useMetricRunSQL.ts @@ -56,8 +56,8 @@ export const useMetricRunSQL = () => { isDataFromRerun: boolean; }) => { const latestVersionNumber = getLatestMetricVersion(metricId); - const options = queryKeys.metricsGetData(metricId, latestVersionNumber); - const currentData = getMetricDataMemoized(metricId, latestVersionNumber); + const options = queryKeys.metricsGetData(metricId, latestVersionNumber as number); + const currentData = getMetricDataMemoized(metricId, latestVersionNumber as number); if (!currentData) return; const setter = isDataFromRerun ? 'dataFromRerun' : 'data'; @@ -178,7 +178,7 @@ export const useMetricRunSQL = () => { await timeout(50); const latestVersionNumber = getLatestMetricVersion(metricId); - const currentData = getMetricDataMemoized(metricId, latestVersionNumber); + const currentData = getMetricDataMemoized(metricId, latestVersionNumber as number); if (currentData?.data_metadata && currentData?.dataFromRerun) { onSetDataForMetric({