Browse Source

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

pull/7856/head
Pranav C 8 months ago
parent
commit
e0c0557039
  1. 5
      packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue

5
packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue

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

Loading…
Cancel
Save