From b6af25d5a56a349ed95b439e9460249e83d462f3 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Tue, 4 Mar 2025 09:49:15 -0700 Subject: [PATCH] fix broken imports --- .../DataSourceIndividualProvider/useDataSourceIndividual.ts | 2 +- .../DataSourceIndividualProvider/useDatasourceUpdate.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/context/DataSources/DataSourceIndividualProvider/useDataSourceIndividual.ts b/web/src/context/DataSources/DataSourceIndividualProvider/useDataSourceIndividual.ts index 8caf7c3c0..5766c364a 100644 --- a/web/src/context/DataSources/DataSourceIndividualProvider/useDataSourceIndividual.ts +++ b/web/src/context/DataSources/DataSourceIndividualProvider/useDataSourceIndividual.ts @@ -8,7 +8,7 @@ export const useDataSourceIndividual = (id: string) => { payload: { id } }, responseEvent: '/data_sources/get:getDataSource', - options: queryKeys['/data_sources/get:getDataSource'](id) + options: queryKeys.datasourceGet(id) }); return { diff --git a/web/src/context/DataSources/DataSourceIndividualProvider/useDatasourceUpdate.ts b/web/src/context/DataSources/DataSourceIndividualProvider/useDatasourceUpdate.ts index 880b21d0d..e676ff781 100644 --- a/web/src/context/DataSources/DataSourceIndividualProvider/useDatasourceUpdate.ts +++ b/web/src/context/DataSources/DataSourceIndividualProvider/useDatasourceUpdate.ts @@ -9,7 +9,7 @@ export const useDatasourceUpdate = () => { emitEvent: '/data_sources/update', responseEvent: '/data_sources/get:getDataSource', callback: (newData, currentData, variables) => { - const options = queryKeys['/data_sources/get:getDataSource'](newData.id); + const options = queryKeys.datasourceGet(newData.id); queryClient.setQueryData(options.queryKey, newData); return currentData; }