Skip to content

Commit

Permalink
BUG: Missing null check on csv row
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-ion committed Jun 22, 2023
1 parent 8626a0e commit a28bd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trainingportal/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ exports.parseReportCSV = (csvData) => {

for(var idx2=0; idx2<teamsCount; idx2++){

if(rowMembers[idx2].length>0){
if(rowMembers[idx2] && rowMembers[idx2].length>0){
reportUsers.teamList[idx2].members.push({"name":rowMembers[idx2].trim(),"status":"Not Started"});
reportUsers.totalMembers++;

Expand Down

0 comments on commit a28bd4e

Please sign in to comment.