SSO: fix
This commit is contained in:
parent
8c234ee0aa
commit
e972d28f87
@ -29,7 +29,7 @@ const CertificatesTable = (props) => {
|
||||
|
||||
const onDelete = () => {
|
||||
prefix === "sp"
|
||||
? delSpCertificate(certificate.crt)
|
||||
? delSpCertificate(certificate.crt, certificate.action)
|
||||
: delIdpCertificate(certificate.crt);
|
||||
};
|
||||
|
||||
|
@ -564,9 +564,9 @@ class SsoFormStore {
|
||||
this.idpIsModalVisible = true;
|
||||
};
|
||||
|
||||
delSpCertificate = (cert) => {
|
||||
delSpCertificate = (cert, action) => {
|
||||
this.spCertificates = this.spCertificates.filter(
|
||||
(certificate) => certificate.crt !== cert
|
||||
(certificate) => certificate.crt !== cert && certificate.action !== action
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user