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:

  1. Deletion: If study is missing, it removes editedStudy from the list.
  2. Update: If study has an ID, it replaces the existing item in the list.
  3. Creation: If study is 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]

On this page