Skip to content

Commit

Permalink
fix(grid): should create correct default name and show correct type w…
Browse files Browse the repository at this point in the history
…hen add multiple member (#197)
  • Loading branch information
minlovehua authored Dec 18, 2024
1 parent 0574af9 commit 9863899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grid/src/core/utils/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getFieldOptionByField(field: Partial<AITableField>) {
export function isSameFieldOption(fieldOption: AITableFieldOption, field: Partial<AITableField>): 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)
);
Expand Down

0 comments on commit 9863899

Please sign in to comment.