Skip to content

Commit 3330f75

Browse files
authored
Merge pull request #579 from AppQuality/fix-error-403-404
fix(navigation): fixed 404 error when getting workspace projects
2 parents ce88ae2 + f14e97b commit 3330f75

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/features/navigation/Navigation.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,12 @@ export const Navigation = ({
100100
});
101101
}
102102

103-
const projects = useGetWorkspacesByWidProjectsQuery({
104-
wid: activeWorkspace?.id.toString() || '',
105-
});
103+
const projects = useGetWorkspacesByWidProjectsQuery(
104+
{
105+
wid: activeWorkspace?.id.toString() || '',
106+
},
107+
{ skip: !activeWorkspace?.id }
108+
);
106109

107110
const projectsList =
108111
!projects.data || !projects.data.items

0 commit comments

Comments
 (0)