From ceea6b43040905adb87a2ddc77b3e342ce04de24 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 29 Aug 2024 10:28:54 +0000 Subject: [PATCH] fix: avoid setting filename prop for non sqlite connection config --- .../workspace/integrations/forms/EditOrAddDatabase.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue b/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue index 081c99b774..f8144ac038 100644 --- a/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue +++ b/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue @@ -359,9 +359,13 @@ const handleImportURL = async () => { formState.value.dataSource.client = connectionConfig.client formState.value.dataSource.connection = { ...connectionConfig.connection, - connection: { + } + + // set filename only for sqlite connection + if (connectionConfig.client === ClientType.SQLITE) { + formState.value.dataSource.connection.connection = { filename: connectionConfig?.connection?.filename || '', - }, + } } } else { message.error(t('msg.error.invalidURL'))