]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-editor.js
Replaced embeds with images in exports
[bookstack] / resources / js / components / page-editor.js
index ce123e987b055db94769f7326a8fdf63f841342b..f6e52c7073b785f53e7ab3aafcce43b1829fd339 100644 (file)
@@ -24,7 +24,7 @@ class PageEditor {
         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