mirror of https://github.com/buster-so/buster.git
fix broken imports
This commit is contained in:
parent
14b79c27a2
commit
97132c09aa
|
@ -24,7 +24,7 @@ export const useGetCollectionsList = (
|
||||||
filters: Omit<Parameters<typeof collectionsGetList>[0], 'page' | 'page_size'>,
|
filters: Omit<Parameters<typeof collectionsGetList>[0], 'page' | 'page_size'>,
|
||||||
options?: Omit<
|
options?: Omit<
|
||||||
UseQueryOptions<Awaited<ReturnType<typeof collectionsGetList>>, RustApiError>,
|
UseQueryOptions<Awaited<ReturnType<typeof collectionsGetList>>, RustApiError>,
|
||||||
'queryKey' | 'queryFn'
|
'queryKey' | 'queryFn' | 'initialData'
|
||||||
>
|
>
|
||||||
) => {
|
) => {
|
||||||
const payload = useMemo(() => {
|
const payload = useMemo(() => {
|
||||||
|
|
|
@ -616,7 +616,7 @@ export const useGetDashboardsList = (
|
||||||
params: Omit<Parameters<typeof dashboardsGetList>[0], 'page_token' | 'page_size'>,
|
params: Omit<Parameters<typeof dashboardsGetList>[0], 'page_token' | 'page_size'>,
|
||||||
options?: Omit<
|
options?: Omit<
|
||||||
UseQueryOptions<Awaited<ReturnType<typeof dashboardsGetList>>, RustApiError>,
|
UseQueryOptions<Awaited<ReturnType<typeof dashboardsGetList>>, RustApiError>,
|
||||||
'queryKey' | 'queryFn'
|
'queryKey' | 'queryFn' | 'initialData'
|
||||||
>
|
>
|
||||||
) => {
|
) => {
|
||||||
const filters = useMemo(() => {
|
const filters = useMemo(() => {
|
||||||
|
|
|
@ -9,7 +9,7 @@ export const useGetMetricsList = (
|
||||||
params: Omit<Parameters<typeof listMetrics>[0], 'page_token' | 'page_size'>,
|
params: Omit<Parameters<typeof listMetrics>[0], 'page_token' | 'page_size'>,
|
||||||
options?: Omit<
|
options?: Omit<
|
||||||
UseQueryOptions<Awaited<ReturnType<typeof listMetrics>>, RustApiError>,
|
UseQueryOptions<Awaited<ReturnType<typeof listMetrics>>, RustApiError>,
|
||||||
'queryKey' | 'queryFn'
|
'queryKey' | 'queryFn' | 'initialData'
|
||||||
>
|
>
|
||||||
) => {
|
) => {
|
||||||
const compiledParams: Parameters<typeof listMetrics>[0] = useMemo(
|
const compiledParams: Parameters<typeof listMetrics>[0] = useMemo(
|
||||||
|
|
|
@ -56,8 +56,8 @@ export const useMetricRunSQL = () => {
|
||||||
isDataFromRerun: boolean;
|
isDataFromRerun: boolean;
|
||||||
}) => {
|
}) => {
|
||||||
const latestVersionNumber = getLatestMetricVersion(metricId);
|
const latestVersionNumber = getLatestMetricVersion(metricId);
|
||||||
const options = queryKeys.metricsGetData(metricId, latestVersionNumber);
|
const options = queryKeys.metricsGetData(metricId, latestVersionNumber as number);
|
||||||
const currentData = getMetricDataMemoized(metricId, latestVersionNumber);
|
const currentData = getMetricDataMemoized(metricId, latestVersionNumber as number);
|
||||||
if (!currentData) return;
|
if (!currentData) return;
|
||||||
const setter = isDataFromRerun ? 'dataFromRerun' : 'data';
|
const setter = isDataFromRerun ? 'dataFromRerun' : 'data';
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ export const useMetricRunSQL = () => {
|
||||||
await timeout(50);
|
await timeout(50);
|
||||||
|
|
||||||
const latestVersionNumber = getLatestMetricVersion(metricId);
|
const latestVersionNumber = getLatestMetricVersion(metricId);
|
||||||
const currentData = getMetricDataMemoized(metricId, latestVersionNumber);
|
const currentData = getMetricDataMemoized(metricId, latestVersionNumber as number);
|
||||||
|
|
||||||
if (currentData?.data_metadata && currentData?.dataFromRerun) {
|
if (currentData?.data_metadata && currentData?.dataFromRerun) {
|
||||||
onSetDataForMetric({
|
onSetDataForMetric({
|
||||||
|
|
Loading…
Reference in New Issue