mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore: remove preloading pages (#5854)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user