From 47bf9921b0dd952042afee81421f5e724df94c17 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Sun, 5 Jan 2025 18:46:54 +0800 Subject: [PATCH] chore: remove incorrect error messages (#27) --- src/cursor-plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cursor-plugin.ts b/src/cursor-plugin.ts index 457955a..189be01 100644 --- a/src/cursor-plugin.ts +++ b/src/cursor-plugin.ts @@ -282,7 +282,9 @@ function absolutePositionToCursor( const loroId = WEAK_NODE_TO_LORO_CONTAINER_MAPPING.get(nodeParent) ?? getByValue(mapping, nodeParent); if (!loroId) { - console.error("Cannot find the loroNode"); + if (nodeParent.nodeSize > 4) { + console.error("Cannot find the loroNode"); + } return; }