Skip to content

Commit b67070b

Browse files
committed
truncated tracks
1 parent 2305172 commit b67070b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/(api)/_utils/csv-ingestion/csvAlgorithm.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ function sortTracks(track1: string, track2: string, chosentracks: string) {
3030

3131
tracksInOrder.push(...otherTracks);
3232
}
33+
34+
if (tracksInOrder.length > 4) {
35+
tracksInOrder.length = 4;
36+
}
37+
38+
console.log(tracksInOrder);
3339
return tracksInOrder.filter((track) => track !== 'NA');
3440
}
3541

0 commit comments

Comments
 (0)