Skip to content

Commit

Permalink
Fixed: state not updating in case of no record (hotwax#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Apr 30, 2024
1 parent bdaa59f commit 6d49e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/facility/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const actions: ActionTree<FacilityState, RootState> = {
}

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)
Expand Down

0 comments on commit 6d49e80

Please sign in to comment.