You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@alexanderbez@fedekunze Hey guys I could implement this. What are your thoughts on how to go for it? Like a simple util function and call it where needed?
@RiccardoM at first thought, the way to approach this is to actually go through each querier method and wherever we return an error, check if the result is nil and return an empty array/slice instead.
Summary
Querying empty objects sometimes return
null
instead of the expected[]
.Problem Definition
This seems to be a recurrent problem for our users as there are quite some issues regarding this: #4276, #4693, #3705, #4259, etc.
Proposal
Create a util function for arrays to always return
[]
when emptyFor Admin Use
The text was updated successfully, but these errors were encountered: