Skip to content

Commit 92426d1

Browse files
committed
linting
1 parent 901121d commit 92426d1

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/composables/useTableSorting.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ export function useTableSorting() {
8181
* @param {Object} bRow - Second row object
8282
* @returns {number} - Sort result (-1, 0, 1)
8383
*/
84-
const tierSortHandler = (aRow, bRow) => {
85-
// TODO refactor into another method
86-
const a = getTierValue(aRow);
87-
const b = getTierValue(bRow);
84+
// const tierSortHandler = (aRow, bRow) => {
85+
// // TODO refactor into another method
86+
// const a = getTierValue(aRow);
87+
// const b = getTierValue(bRow);
8888

89-
if (a === null && b === null) return 0;
90-
if (a === null) return 1;
91-
if (b === null) return -1;
89+
// if (a === null && b === null) return 0;
90+
// if (a === null) return 1;
91+
// if (b === null) return -1;
9292

93-
return a - b;
94-
};
93+
// return a - b;
94+
// };
9595

9696
/**
9797
* Sort handler for region columns (handles string region values)
@@ -128,17 +128,17 @@ export function useTableSorting() {
128128
* @param {Object} row - Row object
129129
* @returns {number|null} - Tier value for sorting
130130
*/
131-
const getTierValue = (row) => {
132-
if (row.designation && Array.isArray(row.designation) && row.designation.length > 0) {
133-
const tier = parseInt(row.designation[0].tier, 10);
134-
return isNaN(tier) ? null : tier;
135-
}
136-
if (row.designation && row.designation.tier) {
137-
const tier = parseInt(row.designation.tier, 10);
138-
return isNaN(tier) ? null : tier;
139-
}
140-
return null;
141-
};
131+
// const getTierValue = (row) => {
132+
// if (row.designation && Array.isArray(row.designation) && row.designation.length > 0) {
133+
// const tier = parseInt(row.designation[0].tier, 10);
134+
// return isNaN(tier) ? null : tier;
135+
// }
136+
// if (row.designation && row.designation.tier) {
137+
// const tier = parseInt(row.designation.tier, 10);
138+
// return isNaN(tier) ? null : tier;
139+
// }
140+
// return null;
141+
// };
142142

143143
/**
144144
* Get the region value for sorting (returns string value or null)

0 commit comments

Comments
 (0)