Skip to content

Commit

Permalink
correct
Browse files Browse the repository at this point in the history
  • Loading branch information
aetchego committed Nov 29, 2024
1 parent ba19834 commit 42f0429
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SearchValueSet/ValueSetField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ const ValueSetField = ({ value, references, placeholder, disabled = false, onSel
const [isExtended, setIsExtended] = useState(false)

const handleDelete = (node: Hierarchy<FhirItem>) => {
const newCodes = value.filter((item) => item.id !== node.id)
const newCodes = value.filter((item) => !(item.id === node.id && item.system === node.system))
onSelect(newCodes)
}

return (
<>
<Grid
Expand Down

0 comments on commit 42f0429

Please sign in to comment.