Skip to content

Commit

Permalink
Update to sync with backend changes
Browse files Browse the repository at this point in the history
  • Loading branch information
REDMOND\tmauldin committed Nov 22, 2023
1 parent 3eef5db commit 35de9f2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ const MinTLSCipherSuiteSelector: React.FC<MinTLSCipherSuiteSelectorProps & Field
}, [setShowCipherSuitePanel]);

const saveSelection = React.useCallback(() => {
// If the selected cipher suite is the least secure (default), back-end wants field value to be empty
const cipherSuite = selectedCipherSuite == leastSecureCipherSuite ? '' : selectedCipherSuite;
form.setFieldValue(field.name, cipherSuite);
form.setFieldValue(field.name, selectedCipherSuite);
dismissPanel();
}, [form.setFieldValue, dismissPanel, selectedCipherSuite]);

Expand Down

0 comments on commit 35de9f2

Please sign in to comment.