Skip to content

Commit

Permalink
frontend: Fix type errors in ResourceTable
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Dubenko <[email protected]>
  • Loading branch information
sniok committed Dec 2, 2024
1 parent 699c1bc commit 4e019e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/common/Resource/ResourceTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function ResourceTableContent<RowItem extends KubeObject>(props: ResourceTablePr
mrtColumn.accessorFn = (item: RowItem) => item[column.datum];
}
if ('render' in column) {
mrtColumn.Cell = ({ row }: { row: MRT_Row<any> }) =>
mrtColumn.Cell = ({ row }: { row: MRT_Row<RowItem> }) =>
column.render?.(row.original) ?? null;
}
if (sort && typeof sort === 'function') {
Expand All @@ -332,7 +332,7 @@ function ResourceTableContent<RowItem extends KubeObject>(props: ResourceTablePr
header: t('translation|Name'),
gridTemplate: 1.5,
accessorFn: (item: RowItem) => item.metadata.name,
Cell: ({ row }: { row: MRT_Row<any> }) =>
Cell: ({ row }: { row: MRT_Row<RowItem> }) =>
row.original && <Link kubeObject={row.original} />,
};
case 'age':
Expand Down

0 comments on commit 4e019e7

Please sign in to comment.