We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f5ceda commit 4fe7eabCopy full SHA for 4fe7eab
src/components/table/helpers/mixin-items.js
@@ -80,8 +80,8 @@ export default {
80
// Current state of sorting, filtering and pagination props/values
81
return {
82
filter: this.localFilter,
83
- sortBy: this.computedSortBy,
84
- sortDesc: this.computedSortDesc,
+ sortBy: this.sortMulti ? this.computedSortBy : (this.computedSortBy || [])[0] || '',
+ sortDesc: this.sortMulti ? this.computedSortDesc : (this.computedSortDesc || [])[0] || false,
85
perPage: parseInt(this.perPage, 10) || 0,
86
currentPage: parseInt(this.currentPage, 10) || 1,
87
apiUrl: this.apiUrl
0 commit comments