Skip to content

Commit 3967097

Browse files
committed
fix(dashboard): disable sort on Template ID column
Template IDs are random nanoid strings — sorting alphabetically by them gives no meaningful order. The server-side sort enum has no templateID variant (clicks would silently fall back to updated_at_desc on the server), so this just removes the misleading sort affordance from the column header to match the other unsortable columns (Visibility, ENVD Ver., Actions).
1 parent 9b05f46 commit 3967097

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/features/dashboard/templates/list/table-config.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const useColumns = (deps: unknown[]) => {
5151
header: 'ID',
5252
size: 156,
5353
enableResizing: false,
54+
enableSorting: false,
5455
cell: TemplateIdCell,
5556
},
5657
{

0 commit comments

Comments
 (0)