Skip to content

Commit

Permalink
frontend ResourceTable: Fix filtering error when some items don't hav…
Browse files Browse the repository at this point in the history
…e a namespace

Signed-off-by: Oleksandr Dubenko <[email protected]>
  • Loading branch information
sniok committed Dec 11, 2024
1 parent e2fccbd commit be9e66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/common/Resource/ResourceTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ function ResourceTableContent<RowItem extends KubeObject>(props: ResourceTablePr
return {
id: 'namespace',
header: t('glossary|Namespace'),
accessorFn: (item: RowItem) => item.getNamespace(),
accessorFn: (item: RowItem) => item.getNamespace() ?? '',
filterVariant: 'multi-select',
Cell: ({ row }: { row: MRT_Row<RowItem> }) =>
row.original?.getNamespace() ? (
Expand Down

0 comments on commit be9e66b

Please sign in to comment.