Skip to content

Commit 82728ff

Browse files
authored
Update mixin-sorting.js
1 parent b5a8058 commit 82728ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/table/helpers/mixin-sorting.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ export default {
109109
},
110110
computedSortDesc() {
111111
// Ensure values are tri-state (true, false, null), and same length as localSortBy array
112-
let sortDesc = this.localSortDesc
113-
sortDesc = this.computedSortBy.map((_, idx) => (isBoolean(sortDesc[idx]) ? sortDesc[idx] : null))
112+
const sortDesc = this.localSortBy.map(
113+
(_, idx) => (isBoolean(this.localSortDesc[idx]) ? this.localSortDesc[idx] : null)
114+
)
114115
return this.sortMulti ? sortDesc : sortDesc.slice(0, 1)
115116
},
116117
computedSortInfo() {

0 commit comments

Comments
 (0)