mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 15:26:59 +08:00
refactor(editor): reduce getService (#10100)
This commit is contained in:
@@ -1016,7 +1016,7 @@ export async function deleteAllConnectors(page: Page) {
|
||||
const container = document.querySelector('affine-edgeless-root');
|
||||
if (!container) throw new Error('container not found');
|
||||
container.service.crud.getElementsByType('connector').forEach(c => {
|
||||
container.service.removeElement(c.id);
|
||||
container.service.crud.removeElement(c.id);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user