Skip to content

Commit

Permalink
Better list key
Browse files Browse the repository at this point in the history
  • Loading branch information
Etheryte committed Nov 7, 2024
1 parent 89558f4 commit d3e3fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/html/src/components/buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class DropdownButton extends _ButtonBase<DropdownProps> {
</button>
<ul className="dropdown-menu dropdown-menu-right">
{this.props.items.map((i, index) => (
<li key={index}>{i}</li>
<li key={`${index}-${i?.toString()}`}>{i}</li>
))}
</ul>
</div>
Expand Down

0 comments on commit d3e3fa7

Please sign in to comment.