Skip to content

Commit

Permalink
[Core] Download CSV duplicates fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laemtl committed Dec 17, 2020
1 parent c1383f3 commit cd7ec82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jsx/StaticDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ class StaticDataTable extends Component {

if (this.hasFilterKeyword(this.props.Headers[j], data)) {
filterMatchCount++;
filteredData.push(this.props.Data[index[i].RowIdx]);
}

if (useKeyword === true) {
Expand Down Expand Up @@ -464,7 +463,8 @@ class StaticDataTable extends Component {
}
}

// Only display a row if all filter values have been matched
// Only display a row in the table or csv
// if all filter values have been matched
if ((filterLength === filterMatchCount) &&
((useKeyword === true && keywordMatch > 0) ||
(useKeyword === false && keywordMatch === 0))) {
Expand All @@ -478,6 +478,8 @@ class StaticDataTable extends Component {
</tr>
);
}

filteredData.push(this.props.Data[index[i].RowIdx]);
}
}

Expand Down

0 comments on commit cd7ec82

Please # to comment.