Skip to content

Commit

Permalink
strict null check in parseValue
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wesely committed Aug 9, 2024
1 parent 55b84cf commit c97e5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Livewire/FilamentForm/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function create()

public function parseValue(FilamentFormField $field, ?string $value): string
{
if (! $value && ! $field->type->isBool()) {
if ($value === null && ! $field->type->isBool()) {
return '';
}

Expand Down

0 comments on commit c97e5e3

Please sign in to comment.