|
|
@@ -26,7 +26,7 @@ function draw(list, prepath) {
|
|
|
}
|
|
|
|
|
|
function drawList(list, index = 0, ctx, prepath) {
|
|
|
- if (index < list.length - 1) {
|
|
|
+ if (index < list.length) {
|
|
|
return getImg(path.resolve(prepath, list[index]), ctx).then(() => {
|
|
|
return drawList(list, index + 1, ctx, prepath);
|
|
|
});
|