]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-editor.js
CM6: Further fixes/improvements after testing
[bookstack] / resources / js / components / page-editor.js
index c58f45b66198544c4ffd0f8d21052d95a09ea1ae..e2b92ff6880f979efdeccdc72203445357691452 100644 (file)
@@ -22,7 +22,7 @@ export class PageEditor extends Component {
         this.draftDisplayIcon = this.$refs.draftDisplayIcon;
         this.changelogInput = this.$refs.changelogInput;
         this.changelogDisplay = this.$refs.changelogDisplay;
-        this.changeEditorButtons = this.$manyRefs.changeEditor;
+        this.changeEditorButtons = this.$manyRefs.changeEditor || [];
         this.switchDialogContainer = this.$refs.switchDialog;
 
         // Translations