fix: sync both filename and connection.filename when updating sqlite datasource

This commit is contained in:
Pranav C
2024-03-14 06:18:05 +00:00
parent 417f17a113
commit e0c0557039

View File

@@ -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,