Skip to content

Commit

Permalink
null
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Dec 14, 2023
1 parent ff67ebf commit 814552b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Requests/FrontendFormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function removeNullsFromCheckboxes($fields, $values)
{
$fields->all()
->filter(fn ($field) => $field->fieldtype()->handle() === 'checkboxes')
->each(fn ($field) => Arr::set($values, $field->handle(), collect(Arr::get($values, $field->handle(), []))->reject(fn ($value) => $value === null)->all()));
->each(fn ($field) => Arr::set($values, $field->handle(), collect(Arr::get($values, $field->handle(), []))->reject(fn ($value) => $value === 'null')->all()));

return $values;
}
Expand Down

0 comments on commit 814552b

Please sign in to comment.