fix: switch workspace show startswith error

This commit is contained in:
alt0
2022-12-22 16:41:18 +08:00
parent 0d23cf31e3
commit 0853be36b3
@@ -27,7 +27,7 @@ export const useLoadPage = () => {
if (!workspace) {
return;
}
const page = workspace?.getPage(pageId);
const page = pageId ? workspace?.getPage(pageId) : null;
if (!page) {
const savedPageId = workspace.meta.pageMetas[0]?.id;
if (savedPageId) {