diff --git a/src/views/Settings/RootCertificateCfssl.vue b/src/views/Settings/RootCertificateCfssl.vue index 17ca76fb5..b1b39ea6e 100644 --- a/src/views/Settings/RootCertificateCfssl.vue +++ b/src/views/Settings/RootCertificateCfssl.vue @@ -246,7 +246,8 @@ export default { throw new Error(response.data.ocs.data) } this.certificate = response.data.ocs.data - this.customData = loadState('libresign', 'config_path').length > 0 && (this.certificate?.cfsslUri?.length > 0 || this.certificate.configPath.length > 0) + this.customData = loadState('libresign', 'config_path').length > 0 + && (this.certificate?.cfsslUri?.length > 0 || this.certificate.configPath.length > 0) if (this.certificate.generated) { this.afterCertificateGenerated() return diff --git a/src/views/Settings/RootCertificateOpenSsl.vue b/src/views/Settings/RootCertificateOpenSsl.vue index 07aa2564c..96e7a48d9 100644 --- a/src/views/Settings/RootCertificateOpenSsl.vue +++ b/src/views/Settings/RootCertificateOpenSsl.vue @@ -231,7 +231,8 @@ export default { throw new Error(response.data.ocs.data) } this.certificate = response.data.ocs.data - this.customData = loadState('libresign', 'config_path').length > 0 && this.certificate.configPath.length > 0 + this.customData = loadState('libresign', 'config_path').length > 0 + && this.certificate.configPath.length > 0 if (this.certificate.generated) { this.afterCertificateGenerated() }