Skip to content

Commit

Permalink
fix: 블록 전환으로 순서 리스트 생성시 인덱스 유지
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovico7 committed Dec 5, 2024
1 parent be88b84 commit 90f52c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/features/editor/hooks/useBlockOption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 90f52c9

Please sign in to comment.