Skip to content

Commit 92ae87e

Browse files
authored
Update mixin-sorting.js
1 parent 518231c commit 92ae87e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@ export default {
119119
// Make sortInfo a data property which we update
120120
// via watchers on sortBy/SortDesc and event handlers.
121121
// When a column is no longer sorted (null) we remove it from the array
122+
const computedSortDesc = this.computedSortDesc
123+
const computedFieldsObj = this.computedFieldsObj
122124
return this.localSortBy
123125
.map((key, idx) => {
124-
const field = this.computedFieldsObj[key] || {}
126+
const field = computedFieldsObj[key] || {}
125127
return {
126128
sortBy: key,
127-
sortDesc: this.computedSortDesc[idx],
129+
sortDesc: computedSortDesc[idx],
128130
formatter: isFunction(field.formatter)
129131
? field.formatter
130132
: field.formatter

0 commit comments

Comments
 (0)