mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 09:59:55 +08:00
refactor(editor): set readonly (#9475)
This commit is contained in:
@@ -35,7 +35,7 @@ export class PreviewHelper {
|
||||
if (!selectedIds.includes(parent)) {
|
||||
ids.push({ viewType: BlockViewType.Bypass, id: parent });
|
||||
}
|
||||
parent = this.widget.doc.blockCollection.crud.getParent(parent);
|
||||
parent = this.widget.doc.getParent(parent)?.id ?? null;
|
||||
} while (parent && !ids.map(({ id }) => id).includes(parent));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user