Skip to content

Commit

Permalink
add check if subgroup is empty (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrg-zwiama authored Feb 28, 2024
1 parent 2ed5862 commit 6139542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ThemeList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ThemeList extends React.Component {
}
const subtree = subdirs.map((subdir) => {
const expanded = !this.props.collapsibleGroups || filter || this.state.expandedGroups.includes(subdir.id) || (this.props.activeTheme && this.groupContainsActiveTheme(subdir));
if (isEmpty(subdir.items)) {
if (isEmpty(subdir.items && isEmpty(subdir.subdirs))) {
return null;
}
return (
Expand Down

0 comments on commit 6139542

Please sign in to comment.