Skip to content

Commit

Permalink
Merge pull request #310 from boostcampwm-2024/Hotfix/블록전환시순서리스트유지
Browse files Browse the repository at this point in the history
Hotfix/블록 전환시 순서 리스트 유지
  • Loading branch information
github-actions[bot] authored Dec 5, 2024
2 parents b5f3857 + 3b9cd72 commit a750892
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 a750892

Please sign in to comment.