Skip to content

Commit

Permalink
Merge pull request #164 from jeromecornet/fix_csv_import
Browse files Browse the repository at this point in the history
Skip empty lines in CSV import
  • Loading branch information
afadil authored Nov 13, 2024
2 parents 46346bd + 1e29b71 commit 87ca646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/activity/import/hooks/useCsvParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function useCsvParser() {
setSelectedFile(file);

Papa.parse<string[]>(file, {
skipEmptyLines: true,
complete: (results) => {
if (results.data && results.data.length > 0) {
setCsvData(results.data);
Expand Down

0 comments on commit 87ca646

Please sign in to comment.