Previously, the facilityGroups were not updating correctly because the call was being made in the mounted lifecycle hook. Moving this call to the ionViewWillEnter ensures the data is refreshed each time the view is entered.
The delete functionality was not working properly. This was resolved by replacing the deleteFacilityGroup service with updateFacilityGroup, ensuring the deletion process is handled correctly.
A toast message was added to notify users when they attempt to submit an empty facility group name.
Contribution and Currently Important Rules Acceptance
Related Issues
266
Short Description and Why It's Useful
facilityGroups
were not updating correctly because the call was being made in themounted
lifecycle hook. Moving this call to theionViewWillEnter
ensures the data is refreshed each time the view is entered.deleteFacilityGroup
service withupdateFacilityGroup
, ensuring the deletion process is handled correctly.toast message
was added to notify users when they attempt to submit an empty facility group name.Contribution and Currently Important Rules Acceptance