diff --git a/client/src/app/pages/controls/tags/tags.tsx b/client/src/app/pages/controls/tags/tags.tsx index bb2a9c5ae1..804662449f 100644 --- a/client/src/app/pages/controls/tags/tags.tsx +++ b/client/src/app/pages/controls/tags/tags.tsx @@ -166,7 +166,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"), @@ -237,10 +237,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, }), @@ -319,7 +319,10 @@ export const Tags: React.FC = () => { - + @@ -366,7 +369,10 @@ export const Tags: React.FC = () => { item={tagCategory} rowIndex={rowIndex} > - + {tagCategory.name}