mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
fix: preloading issues caused by reference change in template (#4009)
This commit is contained in:
@@ -190,7 +190,7 @@ export async function buildShowcaseWorkspace(
|
||||
await Promise.all(
|
||||
data.map(async ([id, promise]) => {
|
||||
const { default: template } = await promise;
|
||||
await workspace.importPageSnapshot(template, id);
|
||||
await workspace.importPageSnapshot(structuredClone(template), id);
|
||||
workspace.setPageMeta(id, pageMetas[id]);
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user