The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Remove shouldCloseCommandMenuOnClick (#12593)
Raphaël Bosifdb5764acd2a
diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuItem.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuItem.tsxindex e1988b30351..553aa73db39 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.tsxindex 4916a316354..3a710053734 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.tsindex 4750a218de8..4cd502b8252 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;};