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:
parent
8e1be68674
commit
5dffd58561
|
@ -177,10 +177,10 @@ function processGame(game) {
|
||||||
// END SAVEFILE BLOCK
|
// END SAVEFILE BLOCK
|
||||||
|
|
||||||
// GITHUB ISSUES BLOCK
|
// GITHUB ISSUES BLOCK
|
||||||
if (model.github_issues != null && model.github_issues.length > 0) {
|
|
||||||
model.issues = [];
|
model.issues = [];
|
||||||
model.closed_issues = [];
|
model.closed_issues = [];
|
||||||
|
|
||||||
|
if (model.github_issues != null && model.github_issues.length > 0) {
|
||||||
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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in New Issue