Skip to content

Commit f14e97b

Browse files
committed
fix(navigation): 4fixed 404 error when getting workspace projects
1 parent 54542c0 commit f14e97b

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)