From 144950ea7071a37b1c7e2719bcdec6accbfa7f25 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Mon, 1 Jun 2020 21:35:10 -0400 Subject: [PATCH] fix: stop search loading when exiting --- client/components/common/search-results.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/components/common/search-results.vue b/client/components/common/search-results.vue index d4bef62f..7648aa2f 100644 --- a/client/components/common/search-results.vue +++ b/client/components/common/search-results.vue @@ -100,9 +100,10 @@ export default { watch: { search(newValue, oldValue) { this.cursor = 0 - if (newValue && newValue.length < 2) { + if (!newValue || (newValue && newValue.length < 2)) { this.response.results = [] this.response.suggestions = [] + this.searchIsLoading = false } else { this.searchIsLoading = true }