fix(editor): v-element may get undefined inline editor (#11697)

This commit is contained in:
Flrande
2025-04-15 08:22:39 +00:00
parent 46f3dfc64c
commit fd6c34cfa3

View File

@@ -23,7 +23,7 @@ export class VElement<
this.disposables.add(
effect(() => {
const inlineRange = this.inlineEditor.inlineRange$.value;
const inlineRange = this.inlineEditor?.inlineRange$.value;
this.selected.value =
!!inlineRange &&
isInlineRangeIntersect(inlineRange, {