diff --git a/app/Filament/Shelter/Resources/BeneficiaryResource/Pages/EditBeneficiary.php b/app/Filament/Shelter/Resources/BeneficiaryResource/Pages/EditBeneficiary.php index aa29330..6218ef2 100644 --- a/app/Filament/Shelter/Resources/BeneficiaryResource/Pages/EditBeneficiary.php +++ b/app/Filament/Shelter/Resources/BeneficiaryResource/Pages/EditBeneficiary.php @@ -41,6 +41,10 @@ protected function mutateFormDataBeforeSave(array $data): array ->latestPublished(Type::PERSONAL) ->first(['id']); + if (blank($form)) { + return $data; + } + /** @var Response */ $response = $this->getRecord() ->latestPersonal()