refactor(data-table): remove unneeded third argument from resolvePath call

This commit is contained in:
Eric Liu 2022-06-05 09:50:27 -07:00
commit 1545da8f9f

View file

@ -213,11 +213,11 @@
} else { } else {
sortedRows = [...$tableRows].sort((a, b) => { sortedRows = [...$tableRows].sort((a, b) => {
const itemA = ascending const itemA = ascending
? resolvePath(a, sortKey, "") ? resolvePath(a, sortKey)
: resolvePath(b, sortKey, ""); : resolvePath(b, sortKey);
const itemB = ascending const itemB = ascending
? resolvePath(b, sortKey, "") ? resolvePath(b, sortKey)
: resolvePath(a, sortKey, ""); : resolvePath(a, sortKey);
if ($sortHeader.sort) return $sortHeader.sort(itemA, itemB); if ($sortHeader.sort) return $sortHeader.sort(itemA, itemB);