Rename sortKey property

Temporary fix until we figure out how to work with BootstrapVue sort
keys.
parent c13ed69f
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
thClass: `gl-text-right gl-w-eighth`, thClass: `gl-text-right gl-w-eighth`,
tdClass: `${tdClass} gl-text-right`, tdClass: `${tdClass} gl-text-right`,
thAttr: TH_INCIDENT_SLA_TEST_ID, thAttr: TH_INCIDENT_SLA_TEST_ID,
sortKey: 'SLA_DUE_AT', actualSortKey: 'SLA_DUE_AT',
sortable: true, sortable: true,
sortDirection: 'asc', sortDirection: 'asc',
}, },
...@@ -262,8 +262,8 @@ export default { ...@@ -262,8 +262,8 @@ export default {
const sortingDirection = sortDesc ? 'DESC' : 'ASC'; const sortingDirection = sortDesc ? 'DESC' : 'ASC';
// Use `sortKey` if provided, otherwise fall back to existing algorithm // Use `sortKey` if provided, otherwise fall back to existing algorithm
if (field?.sortKey) { if (field?.actualSortKey) {
sortKey = field.sortKey; sortKey = field.actualSortKey;
} else { } else {
sortKey = convertToSnakeCase(sortBy).replace(/_.*/, '').toUpperCase(); sortKey = convertToSnakeCase(sortBy).replace(/_.*/, '').toUpperCase();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment