This commit is contained in:
Viktor Fomin 2022-08-05 18:10:45 +03:00
parent 8c234ee0aa
commit e972d28f87
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ const CertificatesTable = (props) => {
const onDelete = () => { const onDelete = () => {
prefix === "sp" prefix === "sp"
? delSpCertificate(certificate.crt) ? delSpCertificate(certificate.crt, certificate.action)
: delIdpCertificate(certificate.crt); : delIdpCertificate(certificate.crt);
}; };

View File

@ -564,9 +564,9 @@ class SsoFormStore {
this.idpIsModalVisible = true; this.idpIsModalVisible = true;
}; };
delSpCertificate = (cert) => { delSpCertificate = (cert, action) => {
this.spCertificates = this.spCertificates.filter( this.spCertificates = this.spCertificates.filter(
(certificate) => certificate.crt !== cert (certificate) => certificate.crt !== cert && certificate.action !== action
); );
}; };