You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2023/06/01 20:13:17 UTC

[nifi] branch main updated: [NIFI-11560] call forEach on Map (#7297)

This is an automated email from the ASF dual-hosted git repository.

mcgilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 7a10ba6165 [NIFI-11560] call forEach on Map (#7297)
7a10ba6165 is described below

commit 7a10ba61658f7b7ecc6815e008ad58daf15d1e85
Author: Scott Aslan <sc...@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, {