diff --git a/frontend/src/components/SortBy.vue b/frontend/src/components/SortBy.vue index 88e2da5df..acd3902b6 100644 --- a/frontend/src/components/SortBy.vue +++ b/frontend/src/components/SortBy.vue @@ -244,8 +244,7 @@ function getSortLabel() { let label = sortOptions.data?.find( (option) => option.value === values[0].fieldname, )?.label - - return label || sort.fieldname + return label || values[0].fieldname } function setSort(data) {