From fadda054241350740909805836b4cf83b4c46fd5 Mon Sep 17 00:00:00 2001 From: Katherine Date: Fri, 18 Oct 2024 15:01:07 +0800 Subject: [PATCH] fix: adjust supported availableTypes for uuid, nano, and id (#5427) --- packages/core/client/src/collection-manager/interfaces/id.ts | 2 +- .../core/client/src/collection-manager/interfaces/nanoid.ts | 2 +- packages/core/client/src/collection-manager/interfaces/uuid.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/client/src/collection-manager/interfaces/id.ts b/packages/core/client/src/collection-manager/interfaces/id.ts index 2dfba0a928..f4180bec94 100644 --- a/packages/core/client/src/collection-manager/interfaces/id.ts +++ b/packages/core/client/src/collection-manager/interfaces/id.ts @@ -31,7 +31,7 @@ export class IdFieldInterface extends CollectionFieldInterface { 'x-read-pretty': true, }, }; - availableTypes = ['bigInt', 'integer', 'string']; + availableTypes = ['bigInt', 'integer']; properties = { 'uiSchema.title': { type: 'string', diff --git a/packages/core/client/src/collection-manager/interfaces/nanoid.ts b/packages/core/client/src/collection-manager/interfaces/nanoid.ts index 109ae8296c..79599ab6c5 100644 --- a/packages/core/client/src/collection-manager/interfaces/nanoid.ts +++ b/packages/core/client/src/collection-manager/interfaces/nanoid.ts @@ -24,7 +24,7 @@ export class NanoidFieldInterface extends CollectionFieldInterface { 'x-component': 'NanoIDInput', }, }; - availableTypes = ['string', 'nanoid']; + availableTypes = ['nanoid']; properties = { 'uiSchema.title': { type: 'string', diff --git a/packages/core/client/src/collection-manager/interfaces/uuid.ts b/packages/core/client/src/collection-manager/interfaces/uuid.ts index 2b15120eee..374e0746a8 100644 --- a/packages/core/client/src/collection-manager/interfaces/uuid.ts +++ b/packages/core/client/src/collection-manager/interfaces/uuid.ts @@ -26,7 +26,7 @@ export class UUIDFieldInterface extends CollectionFieldInterface { 'x-validator': 'uuid', }, }; - availableTypes = ['string', 'uid', 'uuid']; + availableTypes = ['uid', 'uuid']; properties = { 'uiSchema.title': { type: 'string',