diff --git a/assets/src/components/kubernetes/cluster/Namespace.tsx b/assets/src/components/kubernetes/cluster/Namespace.tsx index ff8ce62681..0128e9f0c5 100644 --- a/assets/src/components/kubernetes/cluster/Namespace.tsx +++ b/assets/src/components/kubernetes/cluster/Namespace.tsx @@ -26,7 +26,7 @@ import { SubTitle } from '../../cluster/nodes/SubTitle' import { getBreadcrumbs } from './Namespaces' import { NamespacePhaseChip } from './utils' -import { COLUMNS } from './Events' +import { useEventsColumns } from './Events' const directory: Array = [ { path: '', label: 'Info' }, @@ -161,6 +161,7 @@ export function NamespaceInfo(): ReactElement { export function NamespaceEvents(): ReactElement { const { name } = useParams() + const columns = useEventsColumns() return ( namespaced - columns={COLUMNS} + columns={columns} query={useNamespaceEventsQuery} queryOptions={{ variables: { name } as NamespaceEventsQueryVariables,