fix: 404 for my issues endpoint

since api endpoint was changed it was causing 404 for my issues, the new endpoint sends issues isolated to the workspace
This commit is contained in:
Dakshesh Jain 2022-12-13 11:25:33 +05:30
parent 8af3777afd
commit b540c884c5
6 changed files with 14 additions and 15 deletions

View file

@ -26,8 +26,8 @@ const Workspace: NextPage = () => {
const { user, activeWorkspace, projects } = useUser();
const { data: myIssues } = useSWR<IIssue[]>(
user ? USER_ISSUE : null,
user ? () => userService.userIssues() : null
user && activeWorkspace ? USER_ISSUE(activeWorkspace.slug) : null,
user && activeWorkspace ? () => userService.userIssues(activeWorkspace.slug) : null
);
const cards = [