From de6bf1bb8b1629dc9be7a054b897542bb516d6bc Mon Sep 17 00:00:00 2001
From: Daniel Rainer <daniel.m.rainer@student.uibk.ac.at>
Date: Thu, 25 Mar 2021 18:51:56 +0100
Subject: [PATCH] Set hitCount to 0 when input changes

This line was removed in a (foolish) commit
to development. It should remain in place,
otherwise the displayed hit count is messed
up when the search input changes.
---
 src/main/webapp/app/search/search.component.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/webapp/app/search/search.component.ts b/src/main/webapp/app/search/search.component.ts
index 9e7407b6a..65502041d 100644
--- a/src/main/webapp/app/search/search.component.ts
+++ b/src/main/webapp/app/search/search.component.ts
@@ -30,6 +30,7 @@ export class SearchComponent implements OnInit {
     searchInput.page = 0;
     this.searchInput = searchInput;
     this.results = [];
+    this.hitCount = 0;
     this.search();
   }
 
-- 
GitLab