Fix 401 on exit project (#5388)

This commit is contained in:
tofarr
2024-12-03 10:06:28 -07:00
committed by GitHub
parent 05cc6d4fc3
commit 26a38fce98

View File

@@ -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),
});
};