Skip to content

Commit ed4ebef

Browse files
togo01BOCOVO
authored andcommitted
Remove useEffect when change window size
1 parent cd95f65 commit ed4ebef

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/json-table-schema-visualizer/src/components/DiagramViewer/DiagramWrapper.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ const DiagramWrapper = ({ children }: DiagramWrapperProps) => {
103103
}
104104
};
105105

106-
useEffect(() => {
107-
fitToView();
108-
}, [windowWidth, windowHeight]);
109-
110106
return (
111107
<main
112108
className={`relative flex flex-col items-center ${theme === Theme.dark ? "dark" : ""}`}

0 commit comments

Comments
 (0)