fix broken imports

This commit is contained in:
Nate Kelley 2025-04-17 10:17:52 -06:00
parent 14b79c27a2
commit 97132c09aa
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ export const useGetCollectionsList = (
filters: Omit<Parameters<typeof collectionsGetList>[0], 'page' | 'page_size'>,
options?: Omit<
UseQueryOptions<Awaited<ReturnType<typeof collectionsGetList>>, RustApiError>,
'queryKey' | 'queryFn'
'queryKey' | 'queryFn' | 'initialData'
>
) => {
const payload = useMemo(() => {

View File

@ -616,7 +616,7 @@ export const useGetDashboardsList = (
params: Omit<Parameters<typeof dashboardsGetList>[0], 'page_token' | 'page_size'>,
options?: Omit<
UseQueryOptions<Awaited<ReturnType<typeof dashboardsGetList>>, RustApiError>,
'queryKey' | 'queryFn'
'queryKey' | 'queryFn' | 'initialData'
>
) => {
const filters = useMemo(() => {

View File

@ -9,7 +9,7 @@ export const useGetMetricsList = (
params: Omit<Parameters<typeof listMetrics>[0], 'page_token' | 'page_size'>,
options?: Omit<
UseQueryOptions<Awaited<ReturnType<typeof listMetrics>>, RustApiError>,
'queryKey' | 'queryFn'
'queryKey' | 'queryFn' | 'initialData'
>
) => {
const compiledParams: Parameters<typeof listMetrics>[0] = useMemo(

View File

@ -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({