Skip to content

Commit

Permalink
refactor: always allow toggling of list groups
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpaxton authored and hoorayimhelping committed Jul 2, 2020
1 parent 9365ddb commit 1b1a4ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/templates/components/CommunityTemplateListGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const CommunityTemplateListGroup: FC<Props> = ({title, count, children}) => {
const handleToggleMode = () => {
if (mode === 'expanded') {
setMode('collapsed')
// don't allow expansion if there is nothing to expand
} else if (count) {
} else {
setMode('expanded')
}
}
Expand Down

0 comments on commit 1b1a4ae

Please sign in to comment.