Card generation feature/14-card_generation #24

Merged
niggl merged 19 commits from feature/14-card_generation into dev 2021-02-12 16:59:56 +00:00
Showing only changes of commit 9697d53a15 - Show all commits

View File

@ -246,6 +246,10 @@ export class PdfCreator {
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);
}
}