diff --git a/client/src/app/pages/controls/tags/tags.tsx b/client/src/app/pages/controls/tags/tags.tsx index b3efd2e0e1..cd7f3057bd 100644 --- a/client/src/app/pages/controls/tags/tags.tsx +++ b/client/src/app/pages/controls/tags/tags.tsx @@ -165,7 +165,7 @@ export const Tags: React.FC = () => { idProperty: "name", items: tagCategories, columnNames: { - name: t("terms.name"), + tagCategory: t("terms.tagCategory"), rank: t("terms.rank"), color: t("terms.color"), tagCount: t("terms.tagCount"), @@ -236,10 +236,10 @@ export const Tags: React.FC = () => { }, ], initialItemsPerPage: 10, - sortableColumns: ["name", "rank", "tagCount"], - initialSort: { columnKey: "name", direction: "asc" }, + sortableColumns: ["tagCategory", "rank", "tagCount"], + initialSort: { columnKey: "tagCategory", direction: "asc" }, getSortValues: (item) => ({ - name: item?.name || "", + tagCategory: item?.name || "", rank: typeof item?.rank === "number" ? item.rank : Number.MAX_VALUE, tagCount: item?.tags?.length || 0, }), @@ -318,7 +318,10 @@ export const Tags: React.FC = () => { - + @@ -365,7 +368,10 @@ export const Tags: React.FC = () => { item={tagCategory} rowIndex={rowIndex} > - + {tagCategory.name}