Skip to content

Commit

Permalink
Fix 401 on exit project (All-Hands-AI#5388)
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr authored Dec 3, 2024
1 parent 05cc6d4 commit 26a38fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/query/use-list-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
};

0 comments on commit 26a38fc

Please sign in to comment.