Procházet zdrojové kódy

Fix 401 on exit project (#5388)

tofarr před 1 rokem
rodič
revize
26a38fce98
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      frontend/src/hooks/query/use-list-files.ts

+ 1 - 1
frontend/src/hooks/query/use-list-files.ts

@@ -19,6 +19,6 @@ export const useListFiles = (config?: UseListFilesConfig) => {
   return useQuery({
     queryKey: ["files", token, config?.path],
     queryFn: () => OpenHands.getFiles(config?.path),
-    enabled: isActive && config?.enabled && !!token,
+    enabled: !!(isActive && config?.enabled && token),
   });
 };