The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Second Action Button - fix (#16613)
Etienne2e62bb133bd1
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useGetSecondaryRecordTableCellButton.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useGetSecondaryRecordTableCellButton.tsindex 3cfa98a3356..c5f7d2e36dd 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useGetSecondaryRecordTableCellButton.ts+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useGetSecondaryRecordTableCellButton.ts@@ -32,9 +32,12 @@ export const useGetSecondaryRecordTableCellButton = () => {return [];}+ const mainActionOnClick =+ fieldDefinition.metadata.settings?.clickAction ??+ FieldMetadataSettingsOnClickAction.OPEN_LINK;+const secondaryActionOnClick =- fieldDefinition.metadata.settings?.clickAction ===- FieldMetadataSettingsOnClickAction.OPEN_LINK+ mainActionOnClick === FieldMetadataSettingsOnClickAction.OPEN_LINK? FieldMetadataSettingsOnClickAction.COPY: FieldMetadataSettingsOnClickAction.OPEN_LINK;