grantmakers / profiles

Grantmakers.io Profiles - Summary profiles for all US-based foundations who have filed electronic IRS Form 990-PF
MIT License
1 stars 1 forks source link

Fix tax year dropdown edge case #97

Open chadokruse opened 4 years ago

chadokruse commented 4 years ago

Occurs when the prior year filing contains no grants, but other years DO have grants.

Example profile https://www.grantmakers.io/profiles/v0/010456596-alex-tanous-foundation-for-scientific-research/

Offending code {% if page.filings[1] and page.grants_facet_tax_year[1].count > 0 %}

https://github.com/grantmakers/profiles/blob/source/_layouts/profile.html#L60