export interface ProcessUpdateFormDialogData {
uuid: string;
name: string;
+ description?: string;
}
export const PROCESS_UPDATE_FORM_NAME = 'processUpdateFormName';
async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
dispatch(startSubmit(PROCESS_UPDATE_FORM_NAME));
try {
- const updatedProcess = await services.containerRequestService.update(resource.uuid, { name: resource.name });
+ const updatedProcess = await services.containerRequestService.update(resource.uuid, { name: resource.name, description: resource.description });
dispatch(projectPanelActions.REQUEST_ITEMS());
dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_UPDATE_FORM_NAME }));
return updatedProcess;