citra-emu
/
citra-web
Archived
1
0
Fork 0

Always initalize game's issues and closed_issues fields. Check the length of issues instead of checking if it exists. Fixes #27

This commit is contained in:
chris062689 2017-06-24 11:19:33 -04:00
parent 8e1be68674
commit 5dffd58561
2 changed files with 4 additions and 4 deletions

View File

@ -177,10 +177,10 @@ function processGame(game) {
// END SAVEFILE BLOCK // END SAVEFILE BLOCK
// GITHUB ISSUES BLOCK // GITHUB ISSUES BLOCK
model.issues = [];
model.closed_issues = [];
if (model.github_issues != null && model.github_issues.length > 0) { if (model.github_issues != null && model.github_issues.length > 0) {
model.issues = [];
model.closed_issues = [];
model.github_issues.forEach(function(number) { model.github_issues.forEach(function(number) {
let issue = githubIssues.find(x => x.number == number); let issue = githubIssues.find(x => x.number == number);
if (issue == null) { if (issue == null) {

View File

@ -121,7 +121,7 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<h2>Known Issues</h2> <h2>Known Issues</h2>
{{- if isset .Params "issues" }} {{- if gt (len .Params.issues) 0 }}
<table class="table table-responsive table-striped"> <table class="table table-responsive table-striped">
<thead> <thead>
<tr> <tr>