Browse Source

fix(gui-v2): allow providing all non null/undefined value under ssl object value

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3528/head
Pranav C 2 years ago
parent
commit
92b19a481e
  1. 2
      packages/nc-gui/pages/index/index/create-external.vue

2
packages/nc-gui/pages/index/index/create-external.vue

@ -181,7 +181,7 @@ function getConnectionConfig() {
if ('ssl' in connection && connection.ssl) { if ('ssl' in connection && connection.ssl) {
if ( if (
formState.sslUse === SSLUsage.No || formState.sslUse === SSLUsage.No ||
(typeof connection.ssl === 'object' && Object.values(connection.ssl).every((v) => !v)) (typeof connection.ssl === 'object' && Object.values(connection.ssl).every((v) => v === null || v === undefined))
) { ) {
delete connection.ssl delete connection.ssl
} }

Loading…
Cancel
Save