diff --git a/src/frontend/src/controllers/API/queries/flows/use-patch-update-flow.ts b/src/frontend/src/controllers/API/queries/flows/use-patch-update-flow.ts index 218e7de1e..98d0c8e14 100644 --- a/src/frontend/src/controllers/API/queries/flows/use-patch-update-flow.ts +++ b/src/frontend/src/controllers/API/queries/flows/use-patch-update-flow.ts @@ -33,14 +33,7 @@ export const usePatchUpdateFlow: useMutationFunctionType< }; const mutation: UseMutationResult = - mutate(["usePatchUpdateFlow"], PatchUpdateFlowFn, { - ...options, - onSettled: () => { - queryClient.refetchQueries({ - queryKey: ["useGetFolder"], - }); - }, - }); + mutate(["usePatchUpdateFlow"], PatchUpdateFlowFn, options); return mutation; }; diff --git a/src/frontend/src/controllers/API/queries/folders/use-get-download-folders.ts b/src/frontend/src/controllers/API/queries/folders/use-get-download-folders.ts index ab367dce3..8d4dec403 100644 --- a/src/frontend/src/controllers/API/queries/folders/use-get-download-folders.ts +++ b/src/frontend/src/controllers/API/queries/folders/use-get-download-folders.ts @@ -20,6 +20,10 @@ export const useGetDownloadFolders: useMutationFunctionType< return res.data; }; - const mutation = mutate(["useGetFolders"], downloadFoldersFn, options); + const mutation = mutate( + ["useGetDownloadFolders"], + downloadFoldersFn, + options, + ); return mutation; }; diff --git a/src/frontend/src/pages/MainPage/components/componentsComponent/index.tsx b/src/frontend/src/pages/MainPage/components/componentsComponent/index.tsx index ab6b72bdb..fbbc58e92 100644 --- a/src/frontend/src/pages/MainPage/components/componentsComponent/index.tsx +++ b/src/frontend/src/pages/MainPage/components/componentsComponent/index.tsx @@ -234,7 +234,7 @@ export default function ComponentsComponent({ ) : (
- {data?.length > 0 && isLoading === false ? ( + {data?.length > 0 ? ( <> {data?.map((item) => ( diff --git a/src/frontend/src/pages/MainPage/components/myCollectionComponent/index.tsx b/src/frontend/src/pages/MainPage/components/myCollectionComponent/index.tsx index 83b5cd7b9..89b58c81e 100644 --- a/src/frontend/src/pages/MainPage/components/myCollectionComponent/index.tsx +++ b/src/frontend/src/pages/MainPage/components/myCollectionComponent/index.tsx @@ -13,7 +13,7 @@ const MyCollectionComponent = ({ type }: MyCollectionComponentProps) => { const { folderId } = useParams(); const myCollectionId = useFolderStore((state) => state.myCollectionId); - const { data, isLoading } = useGetFolderQuery( + const { data, isFetching } = useGetFolderQuery( { id: folderId ?? myCollectionId ?? "", }, @@ -27,13 +27,13 @@ const MyCollectionComponent = ({ type }: MyCollectionComponentProps) => { return ( <> - +