From 92b19a481ea90a4d36b95512cf2b5b8701f292be Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 7 Sep 2022 15:58:31 +0530 Subject: [PATCH] fix(gui-v2): allow providing all non null/undefined value under ssl object value Signed-off-by: Pranav C --- packages/nc-gui/pages/index/index/create-external.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/pages/index/index/create-external.vue b/packages/nc-gui/pages/index/index/create-external.vue index 4943d09ddf..e73d5c004b 100644 --- a/packages/nc-gui/pages/index/index/create-external.vue +++ b/packages/nc-gui/pages/index/index/create-external.vue @@ -181,7 +181,7 @@ function getConnectionConfig() { if ('ssl' in connection && connection.ssl) { if ( 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 }