Skip to content

The open alternative to Salesforce, designed for AI.

fix: API ObjectMetadata labelSingular and labelPlural which eventually solves typo in dropdown (#7614)

Nabhag Motivaras508252b14c7d
diff --git a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts
index a090fca9a7d..45cf893bae4 100644
--- a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts
+++ b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts
@@ -1868,9 +1868,9 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290",
"nameSingular": "apiKey",
"namePlural": "apiKeys",
- "labelSingular": "Api Key",
- "labelPlural": "Api Keys",
- "description": "An api key",
+ "labelSingular": "API Key",
+ "labelPlural": "API Keys",
+ "description": "An API key",
"icon": "IconRobot",
"isCustom": false,
"isRemote": false,
diff --git a/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts b/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts
index ee70a317191..ff48d1f3287 100644
--- a/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts
@@ -11,9 +11,9 @@ import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.apiKey,
namePlural: 'apiKeys',
- labelSingular: 'Api Key',
- labelPlural: 'Api Keys',
- description: 'An api key',
+ labelSingular: 'API Key',
+ labelPlural: 'API Keys',
+ description: 'An API key',
icon: 'IconRobot',
labelIdentifierStandardId: API_KEY_STANDARD_FIELD_IDS.name,
})