From ab1c020ad30bdccf59cb656321e399f265aea06e Mon Sep 17 00:00:00 2001 From: Aaron Schwartz Date: Thu, 20 Apr 2017 16:13:17 -0700 Subject: [PATCH] Fix sorting indicator or pivot columns. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6d19f76..9143ce5 100644 --- a/src/index.js +++ b/src/index.js @@ -308,7 +308,7 @@ export default class ReactTable extends Methods(Lifecycle(Component)) { if (column.expander) { if (column.pivotColumns) { - const pivotSort = sorting.find(d => d.id === column.id) + const pivotSort = sorting.find(d => d.id === column.pivotColumns[0].id) return (