Browse Source

fix: avoid setting filename prop for non sqlite connection config

pull/9379/head
Pranav C 3 months ago
parent
commit
ceea6b4304
  1. 8
      packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue

8
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'))

Loading…
Cancel
Save