Skip to content

The open alternative to Salesforce, designed for AI.

Fix Each child in a list should have a unique key prop. (#10881)

martmulld951a5a099e1
diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipGroups.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipGroups.tsx
index 1739bb60666..efc2b2909ad 100644
--- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipGroups.tsx
+++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipGroups.tsx
@@ -24,9 +24,9 @@ export const CommandMenuContextChipGroups = ({
if (contextChips.length < 3) {
return (
<>
- {contextChips.map((chip) => (
+ {contextChips.map((chip, index) => (
<CommandMenuContextChip
- key={chip.text}
+ key={index}
Icons={chip.Icons}
text={chip.text}
onClick={chip.onClick}
@@ -53,8 +53,9 @@ export const CommandMenuContextChipGroups = ({
}
dropdownComponents={
<DropdownMenuItemsContainer>
- {firstChips.map((chip) => (
+ {firstChips.map((chip, index) => (
<MenuItem
+ key={index}
LeftComponent={chip.Icons}
text={chip.text}
onClick={() => {