Skip to content

Commit

Permalink
fix(react-datagrid): sorting cycle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Feb 14, 2024
1 parent 34e37ab commit 92a9596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-datagrid/src/internal/useOrderBys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const useOrderBys = (
let didBailOut = false

setOrderBys(orderBys => {
const existingValue = orderBys[columnKey]
const existingValue = orderBys[columnKey] ?? null

if (existingValue === columnOrderBy) {
didBailOut = true
Expand Down

0 comments on commit 92a9596

Please sign in to comment.