Skip to content

Commit

Permalink
fix: toggle sorting header doesn't transpose id and key
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffMarvin committed Oct 17, 2024
1 parent e84764a commit 09a8ba3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function DataListHeaderTile<T extends DataListObject>({
setIsDropDownOpen(!isDropDownOpen);
} else {
const id = sortableItem?.options?.[0]?.id || headerKey;
toggleSorting(id, headerKey, headers[headerKey]);
toggleSorting(headerKey, id, headers[headerKey]);
}
}

Expand Down

0 comments on commit 09a8ba3

Please sign in to comment.