F
Filament13mo ago
José

Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string

Hello, in the attached form when I'm filling it at the end uploading a file it show me this error "Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given, called" what do you think can be?
2 Replies
LeandroFerreira
LeandroFerreira13mo ago
User::whereNotNull('name')->pluck('name', 'id')
lazydog
lazydog13mo ago
This is because you have null value in your name field. Filter it before "plucking"
Want results from more Discord servers?
Add your server