Skip to content

Commit

Permalink
Fix key assignment in MoreMenuItem to ensure unique keys for list items
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Dec 3, 2024
1 parent 99e56f9 commit 65f9f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/UI/Components/MoreMenu/MoreMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const MoreMenuItem: FunctionComponent<ComponentProps> = (
): ReactElement => {
return (
<a
key={props.key}
key={props.key || Math.random()}
className={`cursor-pointer group flex items-center px-4 py-2 text-sm text-gray-600 hover:text-gray-700 hover:bg-gray-50 ${props.className}`}
role="menuitem"
onClick={() => {
Expand Down

0 comments on commit 65f9f7c

Please sign in to comment.