Web: Client: Settings: SSO: fix generate cert

This commit is contained in:
Viktor Fomin 2022-07-24 00:16:35 +03:00
parent ce7e554927
commit a5ecd54dff

View File

@ -288,8 +288,8 @@ class SsoFormStore {
try {
this.isGeneratedCertificate = true;
const response = await generateCerts();
this.setGeneratedCertificate(response);
const res = await generateCerts();
this.setGeneratedCertificate(res.data);
this.isGeneratedCertificate = false;
} catch (err) {
@ -542,7 +542,8 @@ class SsoFormStore {
];
try {
const newCertificates = await this.validateCertificate(data);
const res = await this.validateCertificate(data);
const newCertificates = res.data;
newCertificates.map((cert) => {
this[`${prefix}_certificates`] = [
...this[`${prefix}_certificates`],