mirror of https://github.com/buster-so/buster.git
fix broken imports
This commit is contained in:
parent
f4ec4730c5
commit
b6af25d5a5
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue