Skip to content

Commit ee49ec6

Browse files
committed
[#153] feat: Socket 구현 사항을 BlockModal에 반영
1 parent 24806ed commit ee49ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/molecules/BlockModal/BlockModal.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ function BlockModal(): JSX.Element {
130130
const modalEL = useRef<HTMLDivElement>();
131131

132132
const createBlockHandler = async (type: string) => {
133-
startTransaction();
133+
// startTransaction();
134134
const newBlock = await insertNewSibling({ type }, blockIndex + 1);
135135
const content =
136136
block.value.substring(0, modal.caretOffset - 1) +
137137
block.value.substring(modal.caretOffset);
138138
await setBlock(modal.blockId, { value: content });
139-
commitTransaction();
139+
// commitTransaction();
140140
setFocus(newBlock);
141141
};
142142

0 commit comments

Comments
 (0)