mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
feat: fix build warn
This commit is contained in:
@@ -43,7 +43,7 @@ export const useLoadPage = () => {
|
||||
});
|
||||
}
|
||||
loadPage?.current?.(pageId);
|
||||
}, [workspace, pageId, loadPage]);
|
||||
}, [workspace, pageId, loadPage, createPage, router, currentWorkspaceId]);
|
||||
|
||||
return currentPage?.pageId === pageId ? currentPage : null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user