Taichi Masuyama 3 лет назад
Родитель
Сommit
ad8a85db9f
1 измененных файлов с 0 добавлено и 10 удалено
  1. 0 10
      packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

+ 0 - 10
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -201,16 +201,6 @@ class CodeMirrorEditor extends AbstractEditor {
   }
 
   componentWillReceiveProps(nextProps) {
-    const currentProps = this.props;
-    // Object.entries(currentProps).forEach(([k, v]) => {
-    //   if (v !== nextProps[k]) {
-    //     console.log(`違うっぴ! key: ${k}, currentProps[k]: ${currentProps[k]}, nextProps[k]: ${nextProps[k]}`);
-    //     if (typeof v === 'object') {
-    //       console.dir(v);
-    //       console.dir(nextProps[k]);
-    //     }
-    //   }
-    // });
     this.initializeEditorSettings(nextProps.editorSettings);
 
     this.initializeTextlint(nextProps.isTextlintEnabled, nextProps.editorSettings);