From 90f52c943b90d040ab5290696d31afd2d92c93c5 Mon Sep 17 00:00:00 2001 From: Ludovico7 Date: Fri, 6 Dec 2024 04:15:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B8=94=EB=A1=9D=20=EC=A0=84=ED=99=98?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=88=9C=EC=84=9C=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=83=9D=EC=84=B1=EC=8B=9C=20=EC=9D=B8=EB=8D=B1?= =?UTF-8?q?=EC=8A=A4=20=EC=9C=A0=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/features/editor/hooks/useBlockOption.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/features/editor/hooks/useBlockOption.ts b/client/src/features/editor/hooks/useBlockOption.ts index 5723e236..b591721b 100644 --- a/client/src/features/editor/hooks/useBlockOption.ts +++ b/client/src/features/editor/hooks/useBlockOption.ts @@ -50,6 +50,10 @@ export const useBlockOptionSelect = ({ block.crdt = new BlockCRDT(editorCRDT.client); } + if (block.type === "ol") { + editorCRDT.LinkedList.updateAllOrderedListIndices(); + } + sendBlockUpdateOperation({ type: "blockUpdate", node: block,