Skip to content

Commit 4fe7eab

Browse files
authored
Update mixin-items.js
1 parent 9f5ceda commit 4fe7eab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export default {
8080
// Current state of sorting, filtering and pagination props/values
8181
return {
8282
filter: this.localFilter,
83-
sortBy: this.computedSortBy,
84-
sortDesc: this.computedSortDesc,
83+
sortBy: this.sortMulti ? this.computedSortBy : (this.computedSortBy || [])[0] || '',
84+
sortDesc: this.sortMulti ? this.computedSortDesc : (this.computedSortDesc || [])[0] || false,
8585
perPage: parseInt(this.perPage, 10) || 0,
8686
currentPage: parseInt(this.currentPage, 10) || 1,
8787
apiUrl: this.apiUrl

0 commit comments

Comments
 (0)