Skip to content

Commit 6b23d48

Browse files
authored
🐛 Column name change to tagCategory (#1881)
Resolves https://issues.redhat.com/browse/MTA-2681 Signed-off-by: Ian Bolton <[email protected]>
1 parent 1420868 commit 6b23d48

File tree

1 file changed

+12
-6
lines changed
  • client/src/app/pages/controls/tags

1 file changed

+12
-6
lines changed

client/src/app/pages/controls/tags/tags.tsx

+12-6
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const Tags: React.FC = () => {
166166
idProperty: "name",
167167
items: tagCategories,
168168
columnNames: {
169-
name: t("terms.name"),
169+
tagCategory: t("terms.tagCategory"),
170170
rank: t("terms.rank"),
171171
color: t("terms.color"),
172172
tagCount: t("terms.tagCount"),
@@ -237,10 +237,10 @@ export const Tags: React.FC = () => {
237237
},
238238
],
239239
initialItemsPerPage: 10,
240-
sortableColumns: ["name", "rank", "tagCount"],
241-
initialSort: { columnKey: "name", direction: "asc" },
240+
sortableColumns: ["tagCategory", "rank", "tagCount"],
241+
initialSort: { columnKey: "tagCategory", direction: "asc" },
242242
getSortValues: (item) => ({
243-
name: item?.name || "",
243+
tagCategory: item?.name || "",
244244
rank: typeof item?.rank === "number" ? item.rank : Number.MAX_VALUE,
245245
tagCount: item?.tags?.length || 0,
246246
}),
@@ -319,7 +319,10 @@ export const Tags: React.FC = () => {
319319
<Thead>
320320
<Tr>
321321
<TableHeaderContentWithControls {...tableControls}>
322-
<Th {...getThProps({ columnKey: "name" })} width={30} />
322+
<Th
323+
{...getThProps({ columnKey: "tagCategory" })}
324+
width={30}
325+
/>
323326
<Th {...getThProps({ columnKey: "rank" })} width={20} />
324327
<Th {...getThProps({ columnKey: "color" })} width={20} />
325328
<Th {...getThProps({ columnKey: "tagCount" })} width={20} />
@@ -366,7 +369,10 @@ export const Tags: React.FC = () => {
366369
item={tagCategory}
367370
rowIndex={rowIndex}
368371
>
369-
<Td width={25} {...getTdProps({ columnKey: "name" })}>
372+
<Td
373+
width={25}
374+
{...getTdProps({ columnKey: "tagCategory" })}
375+
>
370376
{tagCategory.name}
371377
</Td>
372378
<Td width={10} {...getTdProps({ columnKey: "rank" })}>

0 commit comments

Comments
 (0)