Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Table): fixed not working sorting when controlled sortState is used
Browse files Browse the repository at this point in the history
zzzorgo committed Oct 2, 2023
1 parent 7568cdf commit e93954b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ export function withTableSorting<I extends TableDataItem, E extends {} = {}>(
const {data, columns} = this.props;
const sortState = this.getSortState();

if (this.isControlledState() || sortState.length === 0) {
if (sortState.length === 0) {
return data;
}

0 comments on commit e93954b

Please sign in to comment.