Skip to content

Commit e648e5f

Browse files
authored
Merge pull request #333 from HackDavis/remove-duplicate
Update csvAlgorithm.ts
2 parents c49f411 + 544b5e6 commit e648e5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ function sortTracks(
4949
initialTracks.length = 4;
5050
}
5151

52-
return initialTracks;
52+
const tracksSet = Array.from(new Set(initialTracks));
53+
54+
return tracksSet;
5355
}
5456

5557
export default async function csvAlgorithm(

0 commit comments

Comments
 (0)