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')) diff --git a/packages/nc-gui/package.json b/packages/nc-gui/package.json index 0d65ca6451..731976f937 100644 --- a/packages/nc-gui/package.json +++ b/packages/nc-gui/package.json @@ -79,7 +79,7 @@ "marked": "^4.3.0", "monaco-editor": "^0.50.0", "monaco-sql-languages": "^0.11.0", - "nocodb-sdk": "0.255.1", + "nocodb-sdk": "workspace:^", "papaparse": "^5.4.1", "parse-github-url": "^1.0.2", "pdfobject": "^2.3.0", diff --git a/packages/nocodb-sdk/src/lib/connectionConfigUtils.ts b/packages/nocodb-sdk/src/lib/connectionConfigUtils.ts index 60e7ea81c5..b84f9cc883 100644 --- a/packages/nocodb-sdk/src/lib/connectionConfigUtils.ts +++ b/packages/nocodb-sdk/src/lib/connectionConfigUtils.ts @@ -2,7 +2,7 @@ import { SSLUsage } from '~/lib/enums'; export const validateAndExtractSSLProp = ( connectionConfig: any, - sslUse: SSLUsage = SSLUsage.No, + sslUse: SSLUsage, client: string ) => { if ('ssl' in connectionConfig && connectionConfig.ssl) { diff --git a/packages/nocodb/package.json b/packages/nocodb/package.json index 3d1ddf635b..6b430ba229 100644 --- a/packages/nocodb/package.json +++ b/packages/nocodb/package.json @@ -125,7 +125,7 @@ "nc-help": "0.3.4", "nc-lib-gui": "0.255.1", "nestjs-throttler-storage-redis": "^0.4.4", - "nocodb-sdk": "0.255.1", + "nocodb-sdk": "workspace:^", "nodemailer": "^6.9.13", "object-hash": "^3.0.0", "object-sizeof": "^2.6.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a606f979b5..83c2123a40 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -167,7 +167,7 @@ importers: specifier: ^0.11.0 version: 0.11.0 nocodb-sdk: - specifier: 0.255.1 + specifier: workspace:^ version: link:../nocodb-sdk papaparse: specifier: ^5.4.1 @@ -712,7 +712,7 @@ importers: specifier: ^0.4.4 version: 0.4.4(@nestjs/common@10.3.8)(@nestjs/core@10.3.8)(@nestjs/throttler@5.1.2)(ioredis@5.4.1)(reflect-metadata@0.2.1) nocodb-sdk: - specifier: 0.255.1 + specifier: workspace:^ version: link:../nocodb-sdk nodemailer: specifier: ^6.9.13