Skip to content

Commit 0dfbe26

Browse files
committed
linter
1 parent 60e68b3 commit 0dfbe26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/editor/Editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,9 @@ export const Editor: React.FC<EditorProps> = ({ query, onChange, startDate, endD
570570
};
571571

572572
const handleMouseMove = useCallback((e: MouseEvent) => {
573-
if (!isDraggingRef.current || !containerRef.current) return;
574-
573+
if (!isDraggingRef.current || !containerRef.current) {
574+
return;
575+
}
575576
const containerRect = containerRef.current.getBoundingClientRect();
576577
const newHeight = Math.max(150, e.clientY - containerRect.top);
577578
setEditorHeight(`${newHeight}px`);

0 commit comments

Comments
 (0)