diff --git a/client/src/features/editor/hooks/useBlockOption.ts b/client/src/features/editor/hooks/useBlockOption.ts index 5723e23..b591721 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,