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

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


The following commit(s) were added to refs/heads/master by this push:
     new 219a83b  [NIFI-6689] reset private var on dialog close
219a83b is described below

commit 219a83b023b50a30bb03271edbf242c18b14d323
Author: Scott Aslan <[email protected]>
AuthorDate: Thu Sep 19 13:39:58 2019 -0400

    [NIFI-6689] reset private var on dialog close
    
    This closes #3752
---
 .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-contexts.js  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-contexts.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-contexts.js
index 776616e..66e9d35 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-contexts.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-contexts.js
@@ -212,6 +212,7 @@
 
         // reset the last selected parameter
         lastSelectedId = null;
+        parameterIndex = 0;
 
         // reset the current parameter context
         currentParameterContextEntity = null;
@@ -1391,6 +1392,8 @@
                         return false;
                     }
                 });
+            } else {
+                parameterIndex = 0;
             }
 
             if (parameters.length === 0) {

Reply via email to