From 98e6d3de22b3898b9297407ef184d2e1d338fc4e Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Sat, 8 Apr 2023 15:10:19 +0530 Subject: [PATCH] fix: dashboard workspace activity mutation (#742) --- apps/app/pages/[workspaceSlug]/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app/pages/[workspaceSlug]/index.tsx b/apps/app/pages/[workspaceSlug]/index.tsx index cb7cb8405..b31207fa5 100644 --- a/apps/app/pages/[workspaceSlug]/index.tsx +++ b/apps/app/pages/[workspaceSlug]/index.tsx @@ -32,6 +32,8 @@ const WorkspacePage: NextPage = () => { ); useEffect(() => { + if (!workspaceSlug) return; + mutate(USER_WORKSPACE_DASHBOARD(workspaceSlug as string)); }, [month, workspaceSlug]);