From 9863899658c2179d4164757e4af8248fd25bd68f Mon Sep 17 00:00:00 2001 From: wumeimin0107 <321512939@qq.com> Date: Wed, 18 Dec 2024 15:39:32 +0800 Subject: [PATCH] fix(grid): should create correct default name and show correct type when add multiple member (#197) --- packages/grid/src/core/utils/field.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grid/src/core/utils/field.ts b/packages/grid/src/core/utils/field.ts index b64fd756..d1d3688a 100644 --- a/packages/grid/src/core/utils/field.ts +++ b/packages/grid/src/core/utils/field.ts @@ -47,7 +47,7 @@ export function getFieldOptionByField(field: Partial) { export function isSameFieldOption(fieldOption: AITableFieldOption, field: Partial): boolean { return ( fieldOption.type === field.type && - (fieldOption.type === AITableFieldType.select + (fieldOption.type === AITableFieldType.select || fieldOption.type === AITableFieldType.member ? !!(fieldOption.settings as IsMultiple)?.is_multiple === !!(field.settings as IsMultiple)?.is_multiple : true) );