Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMattiussi committed Oct 18, 2023
1 parent 10c810d commit b7a7c38
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 382 deletions.
6 changes: 5 additions & 1 deletion src/api/services/precomputed/precomputed.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ export const getPrecomputedDataPreview = async ctx => {
);
let result = [];
try {
for (let index = 0; index < excerptLines.length; index += BATCH_SIZE) {
for (
let index = 0;
index < Math.min(excerptLines.length, BATCH_SIZE);
index += 1
) {
const entry = {};
sourceColumns.map(column => {
entry[column] = excerptLines[index][column];
Expand Down
Loading

0 comments on commit b7a7c38

Please sign in to comment.