From a6687ae71ac30c7500016c40c9ecda565f2685e3 Mon Sep 17 00:00:00 2001 From: Joe Gresock Date: Mon, 6 Mar 2023 13:48:41 -0500 Subject: [PATCH] NIFI-11247: Using parameterContextName instead of group name when fetching parameters (#7011) Merged #7011. Signed-off-by: Pierre Villard --- .../src/main/webapp/js/nf/canvas/nf-parameter-provider.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-provider.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-provider.js index 4d9c2846eb..26974ffd1d 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-provider.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-provider.js @@ -910,9 +910,11 @@ if (!_.isEmpty(parameterProviderGroupEntity.component.parameterStatus)) { $.each(parameterProviderGroupEntity.component.parameterStatus, function (i, status) { if (status.status !== 'UNCHANGED') { - var group = groupsData.getItems().find(function (group) { return group.name === status.parameter.parameter.parameterContext.component.name }); + var group = groupsData.getItems().find(function (group) { return group.parameterContextName === status.parameter.parameter.parameterContext.component.name }); - loadSelectableParameters(group.parameterSensitivities, group, true); + if (nfCommon.isDefinedAndNotNull(group)) { + loadSelectableParameters(group.parameterSensitivities, group, true); + } $('#fetch-parameters-dialog').modal('refreshButtons'); } })