Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Reverting to the initial value if there is no selected parameter in the combo editor.
  • Loading branch information
mcgilman authored Oct 19, 2023
1 parent dc76d38 commit f2822a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f2822a6

Please sign in to comment.