This is an automated email from the ASF dual-hosted git repository.
markap14 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 f2822a6bfb NIFI-12247: (#7905)
f2822a6bfb is described below
commit f2822a6bfb0fa009eeea001fdfd7e3606d7e0700
Author: Matt Gilman <[email protected]>
AuthorDate: Thu Oct 19 14:25:06 2023 -0400
NIFI-12247: (#7905)
- Reverting to the initial value if there is no selected parameter in the
combo editor.
---
.../src/main/webapp/js/jquery/propertytable/jquery.propertytable.js | 4 ++--
1 file 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/jquery/propertytable/jquery.propertytable.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
index 5fa3b224b4..355d7a3048 100644
---
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
+++
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
@@ -768,8 +768,8 @@
if (parametersSupported && _.isUndefined(selectedValue)) {
selectedOption = parameterCombo.combo('getSelectedOption');
- // if the parameters are still loading, revert to the
initial value, otherwise use the selected parameter
- if (selectedOption === LOADING_PARAMETERS_OPTION) {
+ // if there are no parameters, or they are still loading,
revert to the initial value otherwise use the selected parameter
+ if (_.isUndefined(selectedOption) || selectedOption ===
LOADING_PARAMETERS_OPTION) {
selectedValue = initialValue;
} else {
selectedValue = selectedOption.value;