From bd2a6cbbd310e1a9b81df449347310037b0dc04b Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 23 Apr 2024 15:13:27 +0530 Subject: [PATCH] Add company to default opportunity fields (#5075) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #4484 Screenshot 2024-04-21 at 6 58 10 AM --- .../view-opportunity-fields.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/view-opportunity-fields.ts b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/view-opportunity-fields.ts index ec472b429ce1..7e7ed6b59354 100644 --- a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/view-opportunity-fields.ts +++ b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/view-opportunity-fields.ts @@ -40,7 +40,7 @@ export const viewOpportunityFields = ( { fieldMetadataId: objectMetadataMap[STANDARD_OBJECT_IDS.opportunity].fields[ - OPPORTUNITY_STANDARD_FIELD_IDS.probability + OPPORTUNITY_STANDARD_FIELD_IDS.company ], viewId: viewId, position: 3, @@ -50,12 +50,22 @@ export const viewOpportunityFields = ( { fieldMetadataId: objectMetadataMap[STANDARD_OBJECT_IDS.opportunity].fields[ - OPPORTUNITY_STANDARD_FIELD_IDS.pointOfContact + OPPORTUNITY_STANDARD_FIELD_IDS.probability ], viewId: viewId, position: 4, isVisible: true, size: 150, }, + { + fieldMetadataId: + objectMetadataMap[STANDARD_OBJECT_IDS.opportunity].fields[ + OPPORTUNITY_STANDARD_FIELD_IDS.pointOfContact + ], + viewId: viewId, + position: 5, + isVisible: true, + size: 150, + }, ]; };