Skip to content

Commit

Permalink
chore: lint ์„ค์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovico7 committed Nov 22, 2024
1 parent 400be0a commit 8f493b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/features/editor/components/block/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const Block: React.FC<BlockProps> = memo(
ref={blockRef}
onKeyDown={onKeyDown}
onInput={handleInput}
onClick={(e) => onClick(block.id)}
onClick={() => onClick(block.id)}
contentEditable
suppressContentEditableWarning
className={textContainerStyle({
Expand Down
1 change: 0 additions & 1 deletion client/src/features/editor/hooks/useBlockDragAndDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export const useBlockDragAndDrop = ({
setEditorState({
clock: editorCRDT.clock,
linkedList: editorCRDT.LinkedList,
currentBlock: editorState.currentBlock,
});
} catch (error) {
console.error("Failed to reorder blocks:", error);
Expand Down
4 changes: 2 additions & 2 deletions client/src/features/editor/hooks/useMarkdownGrammer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export const useMarkdownGrammer = ({
) {
editorCRDT.currentBlock = editorCRDT.LinkedList.getNode(newBlockId);
}
setEditorState((prev) => ({
setEditorState({
clock: editorCRDT.clock,
linkedList: editorCRDT.LinkedList,
}));
});
};

const currentBlockId = editorCRDT.currentBlock ? editorCRDT.currentBlock.id : null;
Expand Down

0 comments on commit 8f493b4

Please sign in to comment.