This is an automated email from the ASF dual-hosted git repository. mcgilman pushed a commit to branch support/nifi-1.x in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/support/nifi-1.x by this push: new 765d9bc864 [NIFI-11560] call forEach on Map (#7297) 765d9bc864 is described below commit 765d9bc864bb21d77e5f6117ba05d4192b47005d Author: Scott Aslan <scottyas...@users.noreply.github.com> AuthorDate: Thu Jun 1 16:13:08 2023 -0400 [NIFI-11560] call forEach on Map (#7297) * [NIFI-11560] call forEach on Map * getComponentRestrictions returns Map, use forEach This closes #7297 --- .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js | 2 +- .../nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js | 2 +- 2 files changed, 2 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-policy-management.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js index 564ce0c5ec..c0bf9d6357 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js @@ -455,7 +455,7 @@ description: 'Allows users to create/modify all restricted components regardless of restrictions.' }]; - requiredPermissions.each(function (label, id) { + requiredPermissions.forEach(function (label, id) { if (id !== option.value) { options.push({ text: "requiring '" + label + "'", diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js index 54177e4f1f..650c84d2ee 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js @@ -3071,7 +3071,7 @@ if (!nfCommon.isEmpty(reportingTaskBulletins)) { var reportingTaskBulletinsBySource = new Map(reportingTaskBulletins.map(function(d) { return [d.sourceId, d]; })); - reportingTaskBulletinsBySource.each(function (sourceBulletins, sourceId) { + reportingTaskBulletinsBySource.forEach(function (sourceBulletins, sourceId) { var reportingTask = reportingTasksData.getItemById(sourceId); if (nfCommon.isDefinedAndNotNull(reportingTask)) { reportingTasksData.updateItem(sourceId, $.extend(reportingTask, {