HandleStudyEdited
Function: handleStudyEdited()
[object Object]
Defined in: app/components/Study/ManageStudiesDatatable/ManageStudiesDatatable.handlers.tsx:64
Orchestrates the local state updates after a study has been created, edited, or deleted. It handles three scenarios:
- Deletion: If
studyis missing, it removeseditedStudyfrom the list. - Update: If
studyhas an ID, it replaces the existing item in the list. - Creation: If
studyis new (no ID or matching ID), it appends it to the list.
Parameters
args
[object Object]
The state handlers and data objects for the update.
Returns
[object Object]