[NIFI-11560] call forEach on Map (#7297)

* [NIFI-11560] call forEach on Map

* getComponentRestrictions returns Map, use forEach

This closes #7297
This commit is contained in:
Scott Aslan 2023-06-01 16:13:08 -04:00 committed by GitHub
parent 3ebe8f2983
commit 7a10ba6165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 + "'",

View File

@ -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, {