mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
refactor(data-table): remove unneeded third argument from resolvePath call
This commit is contained in:
parent
260bf4e040
commit
1545da8f9f
1 changed files with 4 additions and 4 deletions
|
@ -213,11 +213,11 @@
|
|||
} else {
|
||||
sortedRows = [...$tableRows].sort((a, b) => {
|
||||
const itemA = ascending
|
||||
? resolvePath(a, sortKey, "")
|
||||
: resolvePath(b, sortKey, "");
|
||||
? resolvePath(a, sortKey)
|
||||
: resolvePath(b, sortKey);
|
||||
const itemB = ascending
|
||||
? resolvePath(b, sortKey, "")
|
||||
: resolvePath(a, sortKey, "");
|
||||
? resolvePath(b, sortKey)
|
||||
: resolvePath(a, sortKey);
|
||||
|
||||
if ($sortHeader.sort) return $sortHeader.sort(itemA, itemB);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue