mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 04:51:49 +08:00
refactor(editor): reduce getService (#10100)
This commit is contained in:
@@ -76,10 +76,6 @@ export class BlockRenderer
|
||||
return this.host?.doc.getBlock(this.rowId)?.model;
|
||||
}
|
||||
|
||||
get service() {
|
||||
return this.host.std.getService('affine:database');
|
||||
}
|
||||
|
||||
override connectedCallback() {
|
||||
super.connectedCallback();
|
||||
if (this.model && this.model.text) {
|
||||
|
||||
Reference in New Issue
Block a user