Explorar el Código

modify PageStatusAlert behavior

Yuki Takei hace 7 años
padre
commit
35262697e2
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      resource/js/components/PageStatusAlert.jsx

+ 2 - 4
resource/js/components/PageStatusAlert.jsx

@@ -113,10 +113,8 @@ class PageStatusAlert extends React.Component {
     const isRevisionOutdated = this.state.initialRevisionId !== this.state.revisionId;
     const isHackmdDocumentOutdated = this.state.revisionId !== this.state.revisionIdHackmdSynced;
 
-    if (isHackmdDocumentOutdated) {
-      if (isRevisionOutdated) {
-        content = this.renderUpdatedAlert();
-      }
+    if (isHackmdDocumentOutdated && isRevisionOutdated) {
+      content = this.renderUpdatedAlert();
     }
     else {
       if (this.state.isDraftUpdatingInRealtime) {