Error getEditOptionActionFormData when using editOptionForm in Select without a relationship

Hello.
I have a select:
Select::make('decedent_id')

with the createOptionForm() working correctly now, and I also need the user to be able to edit, so I added the code for the edit:

->editOptionForm([
     DatePicker::make('date_of_death')
                  ->displayFormat('d M Y')
                  ->required()
                  ->minDate(now()->subYears(120))
                  ->maxDate(now()->subDays(1))
                  ->label(__('date_of_death'))
                  ->placeholder(__('date_of_death'))
                  ->columnSpan(4),
  ])

But when I select one existing data from the dropdown it thows the error:
Filament\Forms\Components\Select::getEditOptionActionFormData(): Return value must be of type array, null returned

Any ideas of how to solve this? I suppose it is not a problem to enable both the createOption and the editOption at the same time. Is it that way?

Thanks.
Was this page helpful?