From fe66e7cf9ee3a487145ac81fe3cba6f3df7af633 Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Wed, 14 Aug 2024 12:08:29 +0530 Subject: [PATCH] Fixed: Facility group search. (#293) --- src/store/modules/facility/actions.ts | 3 +++ src/views/FindGroups.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/store/modules/facility/actions.ts b/src/store/modules/facility/actions.ts index 6d7e7613..690d9d4d 100644 --- a/src/store/modules/facility/actions.ts +++ b/src/store/modules/facility/actions.ts @@ -721,6 +721,9 @@ const actions: ActionTree = { } total = resp.data.count } else { + if (payload.viewIndex === 0 ) { + groups = [] + } throw resp.data } } catch (error) { diff --git a/src/views/FindGroups.vue b/src/views/FindGroups.vue index 92a238ba..ed1b8d17 100644 --- a/src/views/FindGroups.vue +++ b/src/views/FindGroups.vue @@ -21,7 +21,7 @@ -
+