소스 검색

remove center on edit json

Aykut Saraç 3 년 전
부모
커밋
747947bc3b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/containers/LiveEditor/index.tsx

+ 1 - 1
src/containers/LiveEditor/index.tsx

@@ -59,7 +59,7 @@ export const LiveEditor: React.FC<{
 
   React.useEffect(() => {
     if (wrapperRef.current) wrapperRef.current?.resetTransform();
-  }, [json, wrapperRef]);
+  }, [wrapperRef]);
 
   const zoomIn = (scale: number) => {
     if (