Explorar el Código

Fix 401 on exit project (#5388)

tofarr hace 1 año
padre
commit
26a38fce98
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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),
   });
 };