NIFI-12247: (#7905)

- Reverting to the initial value if there is no selected parameter in the combo editor.
This commit is contained in:
Matt Gilman 2023-10-19 14:25:06 -04:00 committed by GitHub
parent dc76d3896d
commit f2822a6bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;