Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: next router throw error (#1396)

Himself65e5e3dceee87a
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,
},
});
}