Skip to content

Conversation

@josieek
Copy link
Contributor

@josieek josieek commented Nov 29, 2025

ℹ️ Issue

Closes #197

📝 Description

The fetchGrants method from /filter-bar/processGrantData is called after deleting a grant, editing an existing grant, and creating a new grant.

A useEffect in GrantItem is triggered everytime the grant modal is closed and a new grant has been submitted/edited. This function fetches the grant from backend so all new changes are immediately reflected.

I also changed some formatting bugs of NewGrantModal (such as a bug where new input fields were created everytime upload documents was pressed) and GrantItem (such as when some fields of the grant are undefined)

✔️ Verification

edit.and.delete.auto.refresh.webm

🏕️ (Optional) Future Work / Notes

fetGrants method is in filter-bar/processGrantData, but now it is called after deleting a grant, editing an existing grant, and creating a new grant. So it may make sense to move this file to another shared backend folder.

@josieek josieek force-pushed the 197-dev---delete-grant-connected-to-backend branch from 1a7d41a to 92f9145 Compare December 3, 2025 00:40
@josieek josieek merged commit df1ae15 into main Dec 3, 2025
1 check passed
@josieek josieek deleted the 197-dev---delete-grant-connected-to-backend branch December 3, 2025 01:21
@josieek josieek restored the 197-dev---delete-grant-connected-to-backend branch December 3, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEV - delete grant connected to backend + useEffect for deleting AND editing

2 participants