mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(editor): block can be null in widget (#10959)
Closes: [BS-2826](https://linear.app/affine-design/issue/BS-2826/typeerror-thisblock-is-null)
This commit is contained in:
@@ -28,7 +28,7 @@ export class WidgetComponent<
|
||||
};
|
||||
|
||||
get block() {
|
||||
return this.std.view.getBlock(this.model.id) as B;
|
||||
return this.std.view.getBlock(this.model.id) as B | null;
|
||||
}
|
||||
|
||||
get doc() {
|
||||
|
||||
Reference in New Issue
Block a user