From 6d49e802110a71dfa8496454e82782b53c8482b7 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 30 Apr 2024 18:16:08 +0530 Subject: [PATCH] Fixed: state not updating in case of no record (#250) --- src/store/modules/facility/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/facility/actions.ts b/src/store/modules/facility/actions.ts index 353a8208..8ac4f410 100644 --- a/src/store/modules/facility/actions.ts +++ b/src/store/modules/facility/actions.ts @@ -129,7 +129,7 @@ const actions: ActionTree = { } emitter.emit("dismissLoader"); - commit(types.FACILITY_LIST_UPDATED , { facilities: facilityList.length ? facilityList : facilities, total }); + commit(types.FACILITY_LIST_UPDATED , { facilities: facilityList, total }); if(facilities.length) { await dispatch('fetchFacilitiesAdditionalInformation', payload)