SSO: fix
This commit is contained in:
parent
8c234ee0aa
commit
e972d28f87
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user