FFilament•Created by Albert Lens on 9/5/2023 in #❓┊help Error getEditOptionActionFormData when using editOptionForm in Select without a relationship
I had this problem. my solution was to use:
->fillEditOptionActionFormUsing(function (string $state) {
if ($state) {
$cost = Cost::find($state);
return $cost->toArray();
}
return [];
})