Skip to content

Commit

Permalink
client: validate only enabled encryption form
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Apr 6, 2022
1 parent c70f941 commit 9cd9ff2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/Settings/Encryption/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class Encryption extends Component {

handleFormChange = debounce((values) => {
const submitValues = this.getSubmitValues(values);
this.props.validateTlsConfig(submitValues);
if (submitValues.enabled) {
this.props.validateTlsConfig(submitValues);
}
}, DEBOUNCE_TIMEOUT);

getInitialValues = (data) => {
Expand Down

0 comments on commit 9cd9ff2

Please sign in to comment.