A list with no locations has null locations instead of an empty list.
Not high priority, I've worked around it in the frontend:
- state.lists = action.payload
+ state.lists = action.payload.map((list) => ({
+ ...list,
+ locations: list.locations ?? [],
+ }))
but the schema technically doesn't allow a nullable list so filing a bug.
A list with no locations has null locations instead of an empty list.
Not high priority, I've worked around it in the frontend:
but the schema technically doesn't allow a nullable list so filing a bug.