Error getEditOptionActionFormData when using editOptionForm in Select without a relationship
Hello.
I have a select:
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:
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.
I have a select:
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:
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.