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:
parent
8af3777afd
commit
b540c884c5
6 changed files with 14 additions and 15 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue