eslint fixes

This commit is contained in:
Wolfgang 2024-05-24 18:47:12 +02:00
parent e98837082e
commit 87ce5c1a8e
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
{
"env": {
"browser": true
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {

View file

@ -162,7 +162,7 @@ div#togglebuttons>button {
autoColumnsDefinitions: function(definitions){
definitions.forEach((column) => {
if (column.field == "band") {
column.sorter = function(a, b, aRow, bRow, column, dir, sorterParams) {
column.sorter = function(a, b) {
return parseFloat(new Measures().from(a).to('m')) - parseFloat(new Measures().from(b).to('m'));
}
}