From e8a2b3e42fafa5ba4bd5cfe3931d1aa85d770aaa Mon Sep 17 00:00:00 2001 From: bosiraphael Date: Wed, 23 Oct 2024 16:58:50 +0200 Subject: [PATCH] use key instead of label as id --- .../src/modules/command-menu/components/CommandMenuActions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuActions.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuActions.tsx index 7ecc9984a..df590b815 100644 --- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuActions.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuActions.tsx @@ -22,7 +22,7 @@ export const CommandMenuActions = ({ const actionCommands = useMemo(() => { return actionMenuEntries?.map((actionMenuEntry) => ({ - id: actionMenuEntry.label, + id: actionMenuEntry.key, label: actionMenuEntry.label, Icon: actionMenuEntry.Icon, onCommandClick: actionMenuEntry.onClick,