From f29c10720837fb7b4395fbde5ae1852c9480df84 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 11 Apr 2024 15:23:59 +0200 Subject: [PATCH] Fix quick search memory leak --- app/javascript/vue/navigation/quick_search.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/navigation/quick_search.vue b/app/javascript/vue/navigation/quick_search.vue index 79a622192..c46cf4685 100644 --- a/app/javascript/vue/navigation/quick_search.vue +++ b/app/javascript/vue/navigation/quick_search.vue @@ -26,7 +26,7 @@ @cancel="filtersOpened = false" >
-
{{ query }} @@ -141,6 +141,9 @@ export default { SearchFilters }, computed: { + reversedPreviousQueries() { + return this.previousQueries.reverse(); + }, canOpen() { return this.previousQueries.length > 0 || this.searchQuery.length > 1; },