Fix Bug 69623 - [LDAP] Error t is not a function after confirming the use of a certificate from an LDAP server

This commit is contained in:
Alexey Safronov 2024-08-08 22:56:21 +04:00
parent 9565631a85
commit 74d72b3b70
2 changed files with 5 additions and 13 deletions

View File

@ -71,16 +71,6 @@ const ButtonContainer = ({
(!isLdapEnabled || isUIDisabled || !hasChanges) && !hasProgressError;
const resetDisabled = !isLdapEnabled || isUIDisabled || isDefaultSettings;
console.log("ButtonContainer", {
isLdapEnabled,
isUIDisabled,
hasChanges,
isDefaultSettings,
saveDisabled,
resetDisabled,
});
return (
<Box className="ldap_buttons-container">
<SaveCancelButtons

View File

@ -59,7 +59,7 @@ const CertificateDialog = ({
const onSaveAction = useCallback((e) => {
setAcceptCertificate(true);
setAcceptCertificateHash(cerficateIssue.uniqueHash);
save();
save(t);
setCertificateDialogVisible(false);
}, []);
@ -140,8 +140,10 @@ const CertificateDialog = ({
</Box>
{hasError && (
<Box>
{cerficateIssue.errors.map((err) => (
<Text color="#F24724">{mapError(err)}</Text>
{cerficateIssue.errors.map((err, index) => (
<Text color="#F24724" key={`err-${index}`}>
{mapError(err)}
</Text>
))}
</Box>
)}