From ff0a15c1b13e058e0f1c13fe9566ad8e70274791 Mon Sep 17 00:00:00 2001 From: Laetitia Fesselier Date: Thu, 17 Dec 2020 10:32:48 -0500 Subject: [PATCH] [Core] Download CSV duplicates fix --- jsx/StaticDataTable.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jsx/StaticDataTable.js b/jsx/StaticDataTable.js index 8b7ecb09e0b..39c23bb14ab 100644 --- a/jsx/StaticDataTable.js +++ b/jsx/StaticDataTable.js @@ -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) {