mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 03:57:10 +00:00
fix: sync both filename and connection.filename when updating sqlite datasource
This commit is contained in:
@@ -222,6 +222,11 @@ const editBase = async () => {
|
||||
|
||||
const config = { ...formState.value.dataSource, connection }
|
||||
|
||||
// todo: refactor and remove this duplicate path in config
|
||||
if(config.client === ClientType.SQLITE && config.connection?.connection?.filename) {
|
||||
config.connection.filename = config.connection.connection.filename;
|
||||
}
|
||||
|
||||
await api.source.update(base.value?.id, props.sourceId, {
|
||||
alias: formState.value.title,
|
||||
type: formState.value.dataSource.client,
|
||||
|
||||
Reference in New Issue
Block a user