mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
updates
This commit is contained in:
@@ -8,9 +8,10 @@ export const directoryKeys = {
|
||||
export const useEmptyDirectoriesQuery = () =>
|
||||
useSuspenseQuery({
|
||||
queryKey: directoryKeys.emptyFolders,
|
||||
queryFn: async () => {
|
||||
const url = "/api/directories/empty";
|
||||
const { data } = await axiosClient.get<string[]>(url);
|
||||
return data;
|
||||
},
|
||||
queryFn: getEmptyDirectories
|
||||
// async () => {
|
||||
// const url = "/api/directories/empty";
|
||||
// const { data } = await axiosClient.get<string[]>(url);
|
||||
// return data;
|
||||
// },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user