Przeglądaj źródła

remove center on edit json

Aykut Saraç 3 lat temu
rodzic
commit
747947bc3b
1 zmienionych plików z 1 dodań i 1 usunięć
  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 (