fix(editor): lit change-in-update warning (#11904)
This PR fixed that lit change-in-update warning. Related #9446 ### Before  ### After 
This commit is contained in:
@@ -288,8 +288,7 @@ export class EdgelessAutoConnectWidget extends WidgetComponent<RootBlockModel> {
|
||||
if (!this.block) {
|
||||
return;
|
||||
}
|
||||
const { service } = this.block;
|
||||
const surfaceRefs = service.doc
|
||||
const surfaceRefs = this.block.std.store
|
||||
.getBlocksByFlavour('affine:surface-ref')
|
||||
.map(block => block.model) as SurfaceRefBlockModel[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user