mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
feat: insert page into workspace block
This commit is contained in:
@@ -541,6 +541,10 @@ export class BlockClient<
|
||||
this.set_page(abstract_block);
|
||||
});
|
||||
this.#block_caches.set(abstract_block.id, abstract_block);
|
||||
|
||||
if (root && abstract_block.flavor === BlockFlavors.page) {
|
||||
root.insertChildren(abstract_block);
|
||||
}
|
||||
return abstract_block;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user