|
|
@ -222,6 +222,11 @@ const editBase = async () => { |
|
|
|
|
|
|
|
|
|
|
|
const config = { ...formState.value.dataSource, connection } |
|
|
|
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, { |
|
|
|
await api.source.update(base.value?.id, props.sourceId, { |
|
|
|
alias: formState.value.title, |
|
|
|
alias: formState.value.title, |
|
|
|
type: formState.value.dataSource.client, |
|
|
|
type: formState.value.dataSource.client, |
|
|
|