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:
@ -177,10 +177,10 @@ function processGame(game) {
|
||||
// END SAVEFILE BLOCK
|
||||
|
||||
// GITHUB ISSUES BLOCK
|
||||
model.issues = [];
|
||||
model.closed_issues = [];
|
||||
|
||||
if (model.github_issues != null && model.github_issues.length > 0) {
|
||||
model.issues = [];
|
||||
model.closed_issues = [];
|
||||
|
||||
model.github_issues.forEach(function(number) {
|
||||
let issue = githubIssues.find(x => x.number == number);
|
||||
if (issue == null) {
|
||||
|
Reference in New Issue
Block a user