Skip to content

Commit

Permalink
fix(Table): fixed not working sorting when controlled sortState is used
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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;
}

Expand Down

0 comments on commit e93954b

Please sign in to comment.