diff --git a/src/public/javascripts/services/tab_context.js b/src/public/javascripts/services/tab_context.js index 22461f36a..f5f5125db 100644 --- a/src/public/javascripts/services/tab_context.js +++ b/src/public/javascripts/services/tab_context.js @@ -11,8 +11,6 @@ import protectedSessionService from "./protected_session.js"; import optionsService from "./options.js"; import linkService from "./link.js"; import Sidebar from "./sidebar.js"; -import libraryLoader from "./library_loader.js"; -import noteAutocompleteService from "./note_autocomplete.js"; const $tabContentsContainer = $("#note-tab-container"); @@ -291,6 +289,10 @@ class TabContext { } getComponent() { + if (!this.components[this.type]) { + throw new Error("Could not find component for type: " + this.type); + } + return this.components[this.type]; } diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index d3544296c..7d81adb82 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -105,6 +105,7 @@ span.fancytree-node.muted { opacity: 0.6; } flex-direction: column; flex-grow: 100; height: 100%; + width: 100%; } .note-detail-component-wrapper {