Skip to content

Commit

Permalink
fix: default to basic oauth_type if undefined to handle upgrade s…
Browse files Browse the repository at this point in the history
…cenario for some add-ons
  • Loading branch information
harshpatel-crest committed Jul 5, 2021
1 parent d3c432c commit db009eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/main/webapp/components/BaseFormView.jsx
Expand Up @@ -153,7 +153,9 @@ class BaseFormView extends PureComponent {
// Defining state for auth_type in case of multiple Authentication
const tempEntity = {};
tempEntity.value =
props.mode === MODE_CREATE ? authType[0] : this.currentInput.auth_type;
typeof this.currentInput.auth_type !== 'undefined'
? this.currentInput.auth_type
: authType[0];
tempEntity.display = true;
tempEntity.error = false;
tempEntity.disabled = false;
Expand Down

0 comments on commit db009eb

Please sign in to comment.