Alpha Release 0.3.0 - Runnercard generation #25

Merged
niggl merged 37 commits from dev into main 2021-02-12 17:03:29 +00:00
Showing only changes of commit 9697d53a15 - Show all commits

View File

@ -246,6 +246,10 @@ export class PdfCreator {
return null; return null;
} }
return [array[1], array[0]].concat(this.swapArrayPairs(array.slice(2))); const rest = this.swapArrayPairs(array.slice(2))
if (!rest) {
return [array[1], array[0]]
}
return [array[1], array[0]].concat(rest);
} }
} }