mirror of https://github.com/apache/nifi.git
NIFI-12247: (#7905)
- Reverting to the initial value if there is no selected parameter in the combo editor.
This commit is contained in:
parent
dc76d3896d
commit
f2822a6bfb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue