Procházet zdrojové kódy

change useEffect dependency

yuto-oweseek před 4 roky
rodič
revize
2725834c46

+ 1 - 1
packages/app/src/components/PageEditor/ConflictDiffModal.tsx

@@ -85,7 +85,7 @@ export const ConflictDiffModal: FC<ConflictDiffModalProps> = (props) => {
         revertButtons: false,
         revertButtons: false,
       });
       });
     }
     }
-  }, [codeMirrorRef, origin, request, latest]);
+  }, [codeMirrorRef, origin.revisionBody, request.revisionBody, latest.revisionBody]);
 
 
   const onCancel = () => {
   const onCancel = () => {
     if (props.onCancel != null) {
     if (props.onCancel != null) {