fix: safe editor

This commit is contained in:
Philipinho
2026-06-20 23:12:32 +01:00
parent d99d321e4a
commit e44ce2714f
15 changed files with 49 additions and 20 deletions
@@ -105,6 +105,7 @@ function TransclusionReferenceBody({
sourcePageId,
transclusionId,
});
if (editor.isDestroyed) return;
const pos = getPos();
if (typeof pos !== "number") return;
const from = pos;