Merge pull request #3578 from payloadcms/fix/#3570

fix: postgres select fields within groups (#3570)
This commit is contained in:
James Mikrut
2023-10-11 11:00:49 -04:00
committed by GitHub
2 changed files with 20 additions and 2 deletions

View File

@@ -122,12 +122,30 @@ const SelectFields: CollectionConfig = {
type: 'select',
options: ['One', 'Two', 'Three'],
},
{
type: 'group',
name: 'settings',
fields: [
{
name: 'category',
type: 'select',
hasMany: true,
options: [
{ value: 'a', label: 'A' },
{ value: 'b', label: 'B' },
],
},
],
},
],
}
export const selectsDoc = {
select: 'one',
selectHasMany: ['two', 'four'],
settings: {
category: ['a'],
},
}
export default SelectFields