@@ -166,7 +166,7 @@ export const Tags: React.FC = () => {
166
166
idProperty : "name" ,
167
167
items : tagCategories ,
168
168
columnNames : {
169
- name : t ( "terms.name " ) ,
169
+ tagCategory : t ( "terms.tagCategory " ) ,
170
170
rank : t ( "terms.rank" ) ,
171
171
color : t ( "terms.color" ) ,
172
172
tagCount : t ( "terms.tagCount" ) ,
@@ -237,10 +237,10 @@ export const Tags: React.FC = () => {
237
237
} ,
238
238
] ,
239
239
initialItemsPerPage : 10 ,
240
- sortableColumns : [ "name " , "rank" , "tagCount" ] ,
241
- initialSort : { columnKey : "name " , direction : "asc" } ,
240
+ sortableColumns : [ "tagCategory " , "rank" , "tagCount" ] ,
241
+ initialSort : { columnKey : "tagCategory " , direction : "asc" } ,
242
242
getSortValues : ( item ) => ( {
243
- name : item ?. name || "" ,
243
+ tagCategory : item ?. name || "" ,
244
244
rank : typeof item ?. rank === "number" ? item . rank : Number . MAX_VALUE ,
245
245
tagCount : item ?. tags ?. length || 0 ,
246
246
} ) ,
@@ -319,7 +319,10 @@ export const Tags: React.FC = () => {
319
319
< Thead >
320
320
< Tr >
321
321
< TableHeaderContentWithControls { ...tableControls } >
322
- < Th { ...getThProps ( { columnKey : "name" } ) } width = { 30 } />
322
+ < Th
323
+ { ...getThProps ( { columnKey : "tagCategory" } ) }
324
+ width = { 30 }
325
+ />
323
326
< Th { ...getThProps ( { columnKey : "rank" } ) } width = { 20 } />
324
327
< Th { ...getThProps ( { columnKey : "color" } ) } width = { 20 } />
325
328
< Th { ...getThProps ( { columnKey : "tagCount" } ) } width = { 20 } />
@@ -366,7 +369,10 @@ export const Tags: React.FC = () => {
366
369
item = { tagCategory }
367
370
rowIndex = { rowIndex }
368
371
>
369
- < Td width = { 25 } { ...getTdProps ( { columnKey : "name" } ) } >
372
+ < Td
373
+ width = { 25 }
374
+ { ...getTdProps ( { columnKey : "tagCategory" } ) }
375
+ >
370
376
{ tagCategory . name }
371
377
</ Td >
372
378
< Td width = { 10 } { ...getTdProps ( { columnKey : "rank" } ) } >
0 commit comments