Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Check for length greater than 0 on template render #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dgading
Copy link
Member

@dgading dgading commented Jul 1, 2020

When no themes are available, a 0 renders instead of nothing. This update just changes the check to make sure there are items in the array since an array of 0 still has a length. Fixes one part of GetDKAN/data-catalog-components#81

@dgading dgading requested a review from janette July 1, 2020 20:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant