Skip to content

Commit

Permalink
Check this is populated before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Jun 2, 2024
1 parent 4d64997 commit fcbeb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
</div>

<script>
const candidates = {{ site.data.ge2024-candidates | jsonify }};
const candidates = {% if site.data.ge2024-candidates %}{{ site.data.ge2024-candidates | jsonify }}{% else %}[]{% endif %};
const mps = {{ site.data.mps | jsonify }};

/*
Expand Down

0 comments on commit fcbeb38

Please sign in to comment.