Skip to content

Commit ab1c020

Browse files
Fix sorting indicator or pivot columns.
1 parent 0c3f2f2 commit ab1c020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default class ReactTable extends Methods(Lifecycle(Component)) {
308308

309309
if (column.expander) {
310310
if (column.pivotColumns) {
311-
const pivotSort = sorting.find(d => d.id === column.id)
311+
const pivotSort = sorting.find(d => d.id === column.pivotColumns[0].id)
312312
return (
313313
<ThComponent
314314
key={i}

0 commit comments

Comments
 (0)