Skip to content

Commit

Permalink
First added diagnosis in create consultation removal (ohcnetwork#8851)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahendar0701 authored Oct 22, 2024
1 parent 31e4ad5 commit 30ae500
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export const CreateDiagnosesBuilder = (props: CreateDiagnosesProps) => {
value={diagnosis}
onChange={(action) => {
if (action.type === "remove") {
props.onChange([...props.value].splice(index, 1));
const updatedDiagnoses = [...props.value];
updatedDiagnoses.splice(index, 1);
props.onChange(updatedDiagnoses);
}

if (action.type === "edit") {
Expand Down

0 comments on commit 30ae500

Please sign in to comment.