Fix enums in generated admin schema code.
This commit is contained in:
parent
3ffdea90c3
commit
be5c1f9197
5 changed files with 36 additions and 10 deletions
|
|
@ -92,8 +92,8 @@ func AdminEntity(r *ui.Request, entityType admin.EntityType, values url.Values)
|
|||
}
|
||||
for _, enum := range f.Enums {
|
||||
options = append(options, Choice{
|
||||
Label: enum.Label,
|
||||
Value: enum.Value,
|
||||
Label: enum,
|
||||
Value: enum,
|
||||
})
|
||||
}
|
||||
nodes = append(nodes, SelectList(OptionsParams{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue