payload
payload copied to clipboard
chore: translate checkbox result in collection list view
Description
Closes #169 from payload-3.0-demo
.
Adds true
and false
translations for the checkbox field result in the collection view.
- [X] I have read and understand the CONTRIBUTING.md document in this repository.
Type of change
- [X] Chore (non-breaking change which does not add functionality)
Checklist:
- [X] Existing test suite passes locally with my changes
@JessChowdhury what does it display if the bool is undefined? i.e. a field without a default value?
@JessChowdhury what does it display if the bool is undefined? i.e. a field without a default value?
It should show <No {label}>
as it did does in 2.0.
However, it got broken in 3.0 here - we previously had if(!CellComponent)
and have since added if(!CellComponent && defaultComponent)
. I just pushed another change to fix this.
@JarrodMFlesch the last commit here will also fix this issue on the 3.0 demo repo.
Looks good, thanks!