diff --git a/client/src/app/queries/cache.ts b/client/src/app/queries/cache.ts index 949384ff9..d6ffe1a90 100644 --- a/client/src/app/queries/cache.ts +++ b/client/src/app/queries/cache.ts @@ -1,6 +1,7 @@ import { useMutation, useQuery } from "@tanstack/react-query"; import { deleteCache, getCache } from "@app/api/rest"; +import { isRWXSupported } from "@app/Constants"; export const CacheQueryKey = "cache"; export const CleanProgressQueryKey = "cleanProgress"; @@ -10,6 +11,7 @@ export const useFetchCache = () => queryKey: [CacheQueryKey], queryFn: getCache, onError: (error) => console.log("error, ", error), + enabled: isRWXSupported, }); export const useDeleteCacheMutation = (