X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e711290d8b1ce06b38e0560248806e8de2077870..refs/pull/5280/head:/resources/js/components/entity-search.js diff --git a/resources/js/components/entity-search.js b/resources/js/components/entity-search.js index 0795fca98..7a5044470 100644 --- a/resources/js/components/entity-search.js +++ b/resources/js/components/entity-search.js @@ -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');