Browse Source

Merge pull request #7856 from nocodb/nc-fix/7844-aqlite-filepath

fix: Sync both filename and connection.filename when updating SQLite datasource
pull/7857/head
Pranav C 9 months ago committed by GitHub
parent
commit
41f1d66ef6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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 }
// 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,

Loading…
Cancel
Save