Skip to content

Commit

Permalink
fix(project) avoid loading project when no project name is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
edlerd committed May 24, 2023
1 parent d4a8aaa commit 7e24a45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context/project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const ProjectProvider: FC<ProviderProps> = ({ children }) => {
queryKey: [queryKeys.projects, project],
queryFn: () => fetchProject(project),
retry: false,
enabled: project.length > 0,
});

return (
Expand Down

0 comments on commit 7e24a45

Please sign in to comment.