mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-31 21:59:10 +08:00
fix(infra): use blocksuite api to check compatibility (#5137)
This commit is contained in:
@@ -85,12 +85,14 @@ export class NoPageRootError extends Error {
|
||||
const spaceVectors = Array.from(page.doc.spaces.entries()).map(
|
||||
([pageId, doc]) => `${pageId} > ${doc.guid}`
|
||||
);
|
||||
const blocks = page.doc.getMap('blocks');
|
||||
console.info(
|
||||
'NoPageRootError current data: %s',
|
||||
JSON.stringify({
|
||||
expectPageId: page.id,
|
||||
expectGuid: page.spaceDoc.guid,
|
||||
spaceVectors,
|
||||
blockSize: blocks.size,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user