mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-31 21:59:10 +08:00
feat(editor): improve api for store, and add docs (#10941)
This commit is contained in:
@@ -109,7 +109,7 @@ export class BlockComponent<
|
||||
if (this._model) {
|
||||
return this._model;
|
||||
}
|
||||
const model = this.doc.getBlockById<Model>(this.blockId);
|
||||
const model = this.doc.getModelById<Model>(this.blockId);
|
||||
if (!model) {
|
||||
throw new BlockSuiteError(
|
||||
ErrorCode.MissingViewModelError,
|
||||
|
||||
Reference in New Issue
Block a user