mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
feat(editor): improve api for store, and add docs (#10941)
This commit is contained in:
@@ -466,7 +466,7 @@ export class DatabaseBlockDataSource extends DataSourceBase {
|
||||
}
|
||||
|
||||
rowMove(rowId: string, position: InsertToPosition): void {
|
||||
const model = this.doc.getBlockById(rowId);
|
||||
const model = this.doc.getModelById(rowId);
|
||||
if (model) {
|
||||
const index = insertPositionToIndex(position, this._model.children);
|
||||
const target = this._model.children[index];
|
||||
|
||||
Reference in New Issue
Block a user