From aa276022097b9f8cf76be9405994a0c5bfad1e7e Mon Sep 17 00:00:00 2001 From: adamviktora Date: Thu, 17 Sep 2026 09:35:27 +0200 Subject: [PATCH] [release-4.21] OCPBUGS-105441: fix matched nodes count in NNCP detail view - regression fix - previous PR #232 had wrong order of arguments in filterPolicyAppliedNodes --- src/views/policies/details/PolicyDetailsPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/policies/details/PolicyDetailsPage.tsx b/src/views/policies/details/PolicyDetailsPage.tsx index 3e83a7b8..a68a1276 100644 --- a/src/views/policies/details/PolicyDetailsPage.tsx +++ b/src/views/policies/details/PolicyDetailsPage.tsx @@ -17,10 +17,10 @@ import { Skeleton, Title, } from '@patternfly/react-core'; +import { filterPolicyAppliedNodes } from '@utils/resources/policies/utils'; import PolicyEnactments from './PolicyEnactments'; import { getInterfaceToShow } from './utils'; -import { filterPolicyAppliedNodes } from '@utils/resources/policies/utils'; export type PolicyDetailsPageProps = { obj?: V1NodeNetworkConfigurationPolicy; @@ -36,7 +36,7 @@ const PolicyDetailsPage: FC = ({ obj: policy, iface }) = namespaced: false, }); - const policyMatchedNodes = filterPolicyAppliedNodes(policy, nodes); + const policyMatchedNodes = filterPolicyAppliedNodes(nodes, policy); const interfaceToShow = getInterfaceToShow(policy, iface?.name); const dnsResolver = policy?.spec?.desiredState?.['dns-resolver'];