Github user gresockj commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1659#discussion_r110669589
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js
---
@@ -412,9 +412,9 @@
// create object whose keys are the parameter name and the
values are the parameter values
var paramsObject = {};
- params.forEach(function (v, k) {
- paramsObject[k] = v;
- });
+ for(var pair of params.entries()) {
--- End diff --
Interesting, I see what you mean. When I build the nifi-web-ui module with
the "of" in place, I get the following error:
[ERROR]
/var/local/workspace/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js
[1:0]: Compilation produced 301 syntax errors.
[ERROR] ...nf-canvas-utils.js:line 1:column 0:Compilation produced 301
syntax errors.
However, when I change "of " to "in", the error goes away and it is able to
build the nar. How did you get around this issue?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---