Is using ?? in form filling code a good practice for null records?
Is using something like this:
But if there is a null record returned from the DB there will be an error.
So, I tried altering the code like this using the ?? operator:
and it seems to work.
The question is whether it's the best approach.
What is the recommended way in Filament to deal with this null issue in this case?
1 Reply
?