From 953d9b2e6e01c9a89b9f108e6f5bc7d9b19421b0 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Wed, 3 Apr 2024 16:02:12 +0800 Subject: [PATCH] fix: select field options initialValue (#3911) --- .../client/src/collection-manager/interfaces/properties/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/client/src/collection-manager/interfaces/properties/index.ts b/packages/core/client/src/collection-manager/interfaces/properties/index.ts index 7e64d6176..08d12d522 100644 --- a/packages/core/client/src/collection-manager/interfaces/properties/index.ts +++ b/packages/core/client/src/collection-manager/interfaces/properties/index.ts @@ -297,6 +297,7 @@ export const dataSource: ISchema = { 'x-reactions': (field: Field) => { if (!field.initialValue) { field.initialValue = uid(); + field.setValue(uid()); } }, },