TextEntry when value is null

                        TextEntry::make('strap')
                            ->columnSpanFull()
                            ->getStateUsing(function (Product $record) {
                                ray($record);
                                return $record->strap === 1 ? 'Ja' : 'Nee';
                            })

Why doesn't this work when the value of strap is null?
Solution
It seems to work now. Don't know why it wasn't working before
Was this page helpful?