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 1374e4c commit 8f6c020Copy full SHA for 8f6c020
src/components/table/helpers/mixin-sorting.js
@@ -203,7 +203,8 @@ export default {
203
updateLocalSortInfo(sortBy, sortDesc) {
204
if (this.isSortable) {
205
// Updates localSortInfo array with the given values
206
- const sortByArr = concat(sortBy).filter(s => !isUndefinedOrNull(s))
+ let sortByArr = concat(sortBy).filter(s => !isUndefinedOrNull(s))
207
+ sortByArr = this.sortMulti ? sortByArr : sortByArr[0] || []
208
const sortDescArr = concat(sortDesc)
209
const computedFieldsObj = this.computedFieldsObj
210
this.localSortInfo = sortByArr.map((key, idx) => {
0 commit comments