ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
212 stars 388 forks source link

Bug: Remove Button Not Functioning in "Add Insurance" Section #8664

Open chakribontha opened 6 hours ago

chakribontha commented 6 hours ago

Describe the bug Remove button functionality is not working in Add Insurance

To Reproduce In Add Insurance Details user should be able to Remove the field by clicking on the remove button

  1. In side bar click on Patient
  2. Click on Add Add Patient Details
  3. Scroll down click on Add Insurance Details
  4. click on delete

Expected behavior The user should be able to remove the insurance details field by clicking the "Remove" button, and the corresponding input fields should disappear from the form. The removal should not affect other data entered in the form

https://github.com/user-attachments/assets/1b4530cd-af7c-47d3-b9fa-9c6783eb163e

chakribontha commented 6 hours ago

I’ve resolved the issue. can anyone please assign me so I can push the PR and discuss it? Thank you!