diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/wiki-data.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js index b5813c7a..1c1db6c1 100644 --- a/src/util/wiki-data.js +++ b/src/util/wiki-data.js @@ -71,6 +71,10 @@ export function chunkMultipleArrays(...args) { const arrays = args.slice(0, -1); const fn = args.at(-1); + if (arrays[0].length === 0) { + return []; + } + const newChunk = index => arrays.map(array => [array[index]]); const results = [newChunk(0)]; |