mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): query methods in edgeless api (#9407)
This commit is contained in:
@@ -41,7 +41,7 @@ export function calcChildBound(
|
||||
const targetBlocks = childConnectors
|
||||
.map(connector => connector.target.id)
|
||||
.filter(id => id !== undefined)
|
||||
.map(id => service.getElementById(id))
|
||||
.map(id => service.crud.getElementById(id))
|
||||
.filter(block => !!block);
|
||||
|
||||
if (targetBlocks.length) {
|
||||
|
||||
Reference in New Issue
Block a user