Skip to content

Commit f0cd60b

Browse files
committed
Clear search results when remove search query
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent ea08fab commit f0cd60b

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

core/src/views/UnifiedSearch.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ export default {
444444
445445
// Do not search if not long enough
446446
if (this.query.trim() === '' || this.isShortQuery) {
447+
for (const type of this.typesIDs) {
448+
this.$delete(this.results, type)
449+
}
447450
return
448451
}
449452

dist/core-unified-search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)