mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 12:16:53 +00:00
fix: avoid setting filename prop for non sqlite connection config
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user