summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r--source/libs/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts
index c77bbc7c..dd2545a2 100644
--- a/source/libs/utils.ts
+++ b/source/libs/utils.ts
@@ -122,7 +122,7 @@ export const flatZip = <T>(table: T[][], limit = Infinity): T[] => {
const zipped = [];
for (let col = 0; col < maxColumns; col++) {
for (const row of table) {
- if (row[col]) {
+ if (row.length > col) {
zipped.push(row[col]);
if (zipped.length === limit) {
return zipped;