Skip to content

Commit

Permalink
Merge pull request #952 from techmatters/CHI-1443-fix_copy_perp
Browse files Browse the repository at this point in the history
CHI-1443: Fix perp / household copy
  • Loading branch information
stephenhand authored Oct 12, 2022
2 parents 7214409 + b56f0b4 commit 1272abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-hrm-form/src/components/case/AddEditCaseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const AddEditCaseItem: React.FC<Props> = ({
}

const save = async () => {
const { info, id } = connectedCase;
const { info, id: caseId } = connectedCase;
const rawForm = workingCopy.form;
const form = transformValues(formDefinition)(rawForm);
const now = new Date().toISOString();
Expand Down Expand Up @@ -188,7 +188,7 @@ const AddEditCaseItem: React.FC<Props> = ({
}
});
}
const updatedCase = await updateCase(id, { info: newInfo });
const updatedCase = await updateCase(caseId, { info: newInfo });
setConnectedCase(updatedCase, task.taskSid);
};

Expand Down

0 comments on commit 1272abe

Please # to comment.