Просмотр исходного кода

Merge branch 'master' into feat/GC-1097-user-privateWiki-restriction

Seiya Tashiro 7 лет назад
Родитель
Сommit
b689148286
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      CHANGES.md
  2. 2 2
      src/client/js/components/PageEditor.js

+ 2 - 0
CHANGES.md

@@ -5,6 +5,8 @@ CHANGES
 
 
 * Feature: Import CSV/TSV/HTML table on Spreadsheet like GUI (Handsontable)
 * Feature: Import CSV/TSV/HTML table on Spreadsheet like GUI (Handsontable)
 * Feature: Add select alignment buttons of Spreadsheet like GUI (Handsontable)
 * Feature: Add select alignment buttons of Spreadsheet like GUI (Handsontable)
+* Fix: An error occured by uploading attachment file when the page is not exists
+    * Introduced by 2.3.5
 
 
 ## 3.2.5
 ## 3.2.5
 
 

+ 2 - 2
src/client/js/components/PageEditor.js

@@ -139,9 +139,9 @@ export default class PageEditor extends React.Component {
         }
         }
         this.refs.editor.insertText(insertText);
         this.refs.editor.insertText(insertText);
 
 
-        // update page information if created
+        // when if created newly
         if (res.pageCreated) {
         if (res.pageCreated) {
-          this.pageSavedHandler(res.page);
+          // do nothing
         }
         }
       })
       })
       .catch(this.apiErrorHandler)
       .catch(this.apiErrorHandler)