Skip to content

Commit 19e95c4

Browse files
author
Yan Xu
committed
Fix type filter issue in tables
1 parent db00c53 commit 19e95c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

webapp/client/src/edge/um/common/ProjectTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ const ProjectTable = (props) => {
173173
enableEditing: false,
174174
},
175175
{
176+
accessorFn: (originalRow) => workflowList[originalRow.type].label, // Use accessorFn to create the display string for filtering
176177
header: 'Type',
177178
accessorKey: 'type',
178-
Cell: ({ cell }) => <>{workflowList[cell.getValue()].label}</>,
179179
enableEditing: false,
180180
},
181181
{

webapp/client/src/edge/um/common/ProjectTableViewOnly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const ProjectTableViewOnly = (props) => {
2424
},
2525
{ header: 'Description', accessorKey: 'desc' },
2626
{
27+
accessorFn: (originalRow) => workflowList[originalRow.type].label, // Use accessorFn to create the display string for filtering
2728
header: 'Type',
2829
accessorKey: 'type',
29-
Cell: ({ cell }) => <>{workflowList[cell.getValue()].label}</>,
3030
enableEditing: false,
3131
},
3232
{

webapp/client/src/edge/um/user/JobQueue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const JobQueue = () => {
1616
header: 'project',
1717
},
1818
{
19+
accessorFn: (originalRow) => workflowList[originalRow.type].label, // Use accessorFn to create the display string for filtering
1920
accessorKey: 'type', //normal accessorKey
2021
header: 'Type',
21-
Cell: ({ cell }) => <>{workflowList[cell.getValue()].label}</>,
2222
},
2323
{
2424
accessorKey: 'status',

0 commit comments

Comments
 (0)