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 874caec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jsx/StaticDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,12 @@ class StaticDataTable extends Component {

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

// Only insert into filteredData if the row was not already inserted
// because of a previous filter match
if (filterMatchCount === 1) {
filteredData.push(this.props.Data[index[i].RowIdx]);
}
}

if (useKeyword === true) {
Expand Down

0 comments on commit 874caec

Please sign in to comment.