Browse Source

Changed variables to const per build tool message

jbarrineau06 5 years ago
parent
commit
a69406cc5d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

+ 2 - 2
src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

@@ -617,8 +617,8 @@ BootstrapTable.prototype.onMultipleSort = function () {
       const order = that.options.sortPriority[i].sortOrder === 'desc' ? -1 : 1
       let aa = a[fieldName]
       let bb = b[fieldName]
-      let value1 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [aa, bb])
-      let value2 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [bb, aa])
+      const value1 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [aa, bb])
+      const value2 = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [bb, aa])
 
       if (value1 !== undefined && value2 !== undefined) {
         arr1.push(order * value1)