diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuItem.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuItem.tsx index e1988b303..553aa73db 100644 --- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuItem.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuItem.tsx @@ -15,7 +15,6 @@ export type CommandMenuItemProps = { onClick?: () => void; Icon?: IconComponent; hotKeys?: string[]; - shouldCloseCommandMenuOnClick?: boolean; RightComponent?: ReactNode; }; diff --git a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx index 4916a3163..3a7100537 100644 --- a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx +++ b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx @@ -53,7 +53,6 @@ export const useCommandMenuSearchRecords = () => { ), shouldBeRegistered: () => true, description: capitalize(searchRecord.objectNameSingular), - shouldCloseCommandMenuOnClick: true, }; if ( diff --git a/packages/twenty-front/src/modules/command-menu/types/Command.ts b/packages/twenty-front/src/modules/command-menu/types/Command.ts index 4750a218d..4cd502b82 100644 --- a/packages/twenty-front/src/modules/command-menu/types/Command.ts +++ b/packages/twenty-front/src/modules/command-menu/types/Command.ts @@ -23,5 +23,4 @@ export type Command = { Icon?: IconComponent; hotKeys?: string[]; onCommandClick?: () => void; - shouldCloseCommandMenuOnClick?: boolean; };