Re-add deleted code

This commit is contained in:
Andrew Kingston 2024-10-11 16:37:25 +01:00
parent d50e9b83f5
commit 516f45e8ad
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ export function canBeDisplayColumn(column) {
} }
export function canBeSortColumn(column) { export function canBeSortColumn(column) {
if (!sharedCore.canBeSortColumn(column.type)) {
return false
}
if (column.related) { if (column.related) {
// If it's a related column (only available in the frontend), don't allow using it as display column // If it's a related column (only available in the frontend), don't allow using it as display column
return false return false