mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 09:17:06 +08:00
fix: safe editor
This commit is contained in:
+1
@@ -105,6 +105,7 @@ function TransclusionReferenceBody({
|
||||
sourcePageId,
|
||||
transclusionId,
|
||||
});
|
||||
if (editor.isDestroyed) return;
|
||||
const pos = getPos();
|
||||
if (typeof pos !== "number") return;
|
||||
const from = pos;
|
||||
|
||||
Reference in New Issue
Block a user