Skip to content

Commit

Permalink
fix: fix possible duplicated keys in HierarchicalComboBox
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Aug 28, 2023
1 parent b386e53 commit 07599ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inputs/HierarchicalComboBox/HierarchicalComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const HierarchicalComboBox = ({
renderOption={(props, option) => {
const marginLeft = option.depth * 20 || 0;
return (
<li data-testid={'option-' + option.id} {...props}>
<li data-testid={'option-' + option.id} {...props} key={option.id}>
<span style={{ marginLeft }}>
{option.name}
<ScenarioValidationStatusChip
Expand Down

0 comments on commit 07599ce

Please sign in to comment.