feat: fix build warn

This commit is contained in:
MingLiang Wang
2022-12-22 16:56:12 +08:00
parent 0853be36b3
commit be26fe3de1
4 changed files with 5 additions and 5 deletions
@@ -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;
};