For various reasons - the two that come to mind are use of Layout Builder Restrictions, and "created the category but haven't gotten around to populating it yet" - categories might not have items in them. In those cases, you currently get an empty collapsible section, and I would propose that the section not appear at all.
A patch is incoming.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | remove_empty_categories-3160404-2.patch | 1.42 KB | kpaxman |
Comments
Comment #2
kpaxman commentedI feel like there might be a more optimized way of doing this, but this seems to work, tested against my two use cases.
Comment #4
strykaizerThanks Kevin!