mirror of https://github.com/apache/nifi.git
[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:
parent
3ebe8f2983
commit
7a10ba6165
|
@ -455,7 +455,7 @@
|
||||||
description: 'Allows users to create/modify all restricted components regardless of restrictions.'
|
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) {
|
if (id !== option.value) {
|
||||||
options.push({
|
options.push({
|
||||||
text: "requiring '" + label + "'",
|
text: "requiring '" + label + "'",
|
||||||
|
|
|
@ -3071,7 +3071,7 @@
|
||||||
if (!nfCommon.isEmpty(reportingTaskBulletins)) {
|
if (!nfCommon.isEmpty(reportingTaskBulletins)) {
|
||||||
var reportingTaskBulletinsBySource = new Map(reportingTaskBulletins.map(function(d) { return [d.sourceId, d]; }));
|
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);
|
var reportingTask = reportingTasksData.getItemById(sourceId);
|
||||||
if (nfCommon.isDefinedAndNotNull(reportingTask)) {
|
if (nfCommon.isDefinedAndNotNull(reportingTask)) {
|
||||||
reportingTasksData.updateItem(sourceId, $.extend(reportingTask, {
|
reportingTasksData.updateItem(sourceId, $.extend(reportingTask, {
|
||||||
|
|
Loading…
Reference in New Issue