chore: remove preloading pages (#5854)

This commit is contained in:
JimmFly
2024-02-21 12:57:18 +00:00
parent c353b0d30f
commit 8d746f17de
46 changed files with 33 additions and 4489 deletions

View File

@@ -100,13 +100,13 @@ export async function buildShowcaseWorkspace(
store.set(atoms.pageMode, edgelessPage1, 'edgeless');
}
// should jump to "Getting Started" by default
const gettingStartedPage = (workspace.meta.pages as PageMeta[])?.find(p =>
p.title.startsWith('Getting Started')
// should jump to "AFFiNE - not just a note-taking app" by default
const defaultPage = (workspace.meta.pages as PageMeta[])?.find(p =>
p.title.startsWith('AFFiNE - not just a note-taking app')
)?.id;
if (gettingStartedPage) {
workspace.setPageMeta(gettingStartedPage, {
if (defaultPage) {
workspace.setPageMeta(defaultPage, {
jumpOnce: true,
});
}