fix: lint error and build error

This commit is contained in:
DiamondThree
2023-01-10 23:13:22 +08:00
parent d7e6654965
commit eef467558e
11 changed files with 24 additions and 22 deletions
@@ -16,9 +16,7 @@ const WorkspaceIndex = () => {
if (!workspaceLoaded) {
return;
}
const savedPageId = currentWorkspace?.meta.pageMetas[0]?.id;
if (savedPageId) {
router.replace(`/workspace/${activeWorkspaceId}/${savedPageId}`);
return;
@@ -34,6 +32,7 @@ const WorkspaceIndex = () => {
createPage,
router,
workspaceLoaded,
activeWorkspaceId,
]);
return <PageLoading />;