From e5e3dceee87a9c65612986493f7674ed7fcedeae Mon Sep 17 00:00:00 2001 From: Himself65 Date: Tue, 7 Mar 2023 16:26:39 -0600 Subject: [PATCH] fix: next router throw error (#1396) --- .../hooks/use-sync-router-with-current-workspace-and-page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/hooks/use-sync-router-with-current-workspace-and-page.ts b/apps/web/src/hooks/use-sync-router-with-current-workspace-and-page.ts index 0c9b46aa22..24017d2b61 100644 --- a/apps/web/src/hooks/use-sync-router-with-current-workspace-and-page.ts +++ b/apps/web/src/hooks/use-sync-router-with-current-workspace-and-page.ts @@ -153,7 +153,7 @@ export function useSyncRouterWithCurrentWorkspaceAndPage(router: NextRouter) { query: { ...router.query, workspaceId: currentWorkspace.id, - pageId: targetId, + pageId: targetPageId, }, }); }