]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-search.js
ExportFormatter: Add book description and check for empty book and chapter descriptio...
[bookstack] / resources / js / components / entity-search.js
index 0795fca98311b37c84f193d8676c32c4f013fe39..7a50444708dee6313ab5b2caee5a2dd21def7cdb 100644 (file)
@@ -31,7 +31,8 @@ export class EntitySearch extends Component {
     runSearch() {
         const term = this.searchInput.value.trim();
         if (term.length === 0) {
-            return this.clearSearch();
+            this.clearSearch();
+            return;
         }
 
         this.searchView.classList.remove('hidden');