2
0
kaori 3 жил өмнө
parent
commit
c0506e0ad8

+ 3 - 3
packages/app/src/components/PageEditor.tsx

@@ -229,9 +229,9 @@ const PageEditor = (props: Props): JSX.Element => {
 
 
   const scrollPreviewByEditorLine = useCallback((line: number) => {
-    // if (previewRef.current == null) {
-    //   return;
-    // }
+    if (previewRef.current == null) {
+      return;
+    }
 
     // prevent circular invocation
     if (isOriginOfScrollSyncPreview) {