Przeglądaj źródła

Fix 401 on exit project (#5388)

tofarr 1 rok temu
rodzic
commit
26a38fce98
1 zmienionych plików z 1 dodań i 1 usunięć
  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),
   });
 };