refactor(editor): reduce getService (#10100)

This commit is contained in:
Saul-Mirone
2025-02-11 12:26:01 +00:00
parent dbf0f9dc20
commit 6b78d2dcf2
33 changed files with 189 additions and 300 deletions

View File

@@ -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);
});
});
}