diff --git a/client/src/components/LibraryFolder/LibraryFolder.vue b/client/src/components/LibraryFolder/LibraryFolder.vue index cabfa38c001..965f48bdcc2 100644 --- a/client/src/components/LibraryFolder/LibraryFolder.vue +++ b/client/src/components/LibraryFolder/LibraryFolder.vue @@ -33,7 +33,11 @@ show-empty > @@ -21,7 +21,7 @@ export default { }; }, methods: { - startSeach() { + startSearch() { this.$emit("updateSearch", this.search); this.awaitingSearch = false; }, @@ -30,7 +30,7 @@ export default { search: function () { if (!this.awaitingSearch) { setTimeout(() => { - this.startSeach(); + this.startSearch(); }, 1000); // 1 sec delay } this.awaitingSearch = true; diff --git a/client/src/components/LibraryFolder/TopToolbar/FolderTopBar.vue b/client/src/components/LibraryFolder/TopToolbar/FolderTopBar.vue index 92a1e561077..26ad7479785 100644 --- a/client/src/components/LibraryFolder/TopToolbar/FolderTopBar.vue +++ b/client/src/components/LibraryFolder/TopToolbar/FolderTopBar.vue @@ -229,11 +229,12 @@ export default { this.fetchExtAndGenomes(); }, mounted() { - new mod_path_bar.PathBar({ - full_path: this.metadata.full_path, - id: this.folder_id, - parent_library_id: this.metadata.parent_library_id, - }); + if (this.metadata.full_path) + new mod_path_bar.PathBar({ + full_path: this.metadata.full_path, + id: this.folder_id, + parent_library_id: this.metadata.parent_library_id, + }); }, computed: { contains_file_or_folder: function () {