Handling null id in column url to related resource
I'm using urls in my tables to allow quick navigation to the views of related records. Here's an example:
It generally works great, but in one of my tables the column of related ids has null values. These null values cause errors, so they have to be handled. What would be a good approach to conditionally showing these urls when the values are not null?
2 Replies
Solution
?
Thanks. Had to mark the return type as nullable, but otherwise it works and in a way simplifies what I was doing before