fix(choice): fix Match when field data is nil

This commit is contained in:
Simon Vieille 2025-07-27 14:33:18 +02:00
commit 33e3a97d07
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -38,6 +38,10 @@ type Choices struct {
}
func (c *Choices) Match(f *Field, value string) bool {
if f.Data == nil {
return false
}
if f.IsSlice {
v := reflect.ValueOf(f.Data)