The issue was that upon deletion of any individual events or multiple events, it would require a manual refresh to display the changes. It was due to the state not being handled properly within the eventModal.jsx file. Imported useEventsContext and managed state through a filter call based on groupID or ._Id
NOTE: Database clearing test does not pass, would require further investigation, however, does not add up since all database operations and dev server were working perfectly fine during development. (Could be my environment)
Type of change
Please select everything applicable. Please, do not delete any lines.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] This change requires an update to testing
Issue
[ ] Is this related to a specific issue? If so, please specify:
Checklist:
[x] This PR is up to date with the main branch, and merge conflicts have been resolved
[x] I have executed npm run test and all tests have passed successfully or I have included details within my PR on the failure.
[x] I have executed npm run lint and resolved any outstanding errors. Most issues can be solved by executing npm run format
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
Description
The issue was that upon deletion of any individual events or multiple events, it would require a manual refresh to display the changes. It was due to the state not being handled properly within the eventModal.jsx file. Imported useEventsContext and managed state through a filter call based on groupID or ._Id
NOTE: Database clearing test does not pass, would require further investigation, however, does not add up since all database operations and dev server were working perfectly fine during development. (Could be my environment)
Type of change
Please select everything applicable. Please, do not delete any lines.
Issue
Checklist:
npm run test
and all tests have passed successfully or I have included details within my PR on the failure.npm run lint
and resolved any outstanding errors. Most issues can be solved by executingnpm run format