Browse Source

fix naming of datasources

master
Peter Clement 5 years ago
parent
commit
29551c4621
  1. 4
      packages/builder/src/components/backend/DatasourceNavigator/modals/DatasourceDetailsModal.svelte

4
packages/builder/src/components/backend/DatasourceNavigator/modals/DatasourceDetailsModal.svelte

@ -8,7 +8,7 @@
function prepareData() { function prepareData() {
let datasource = {} let datasource = {}
let existingTypeCount = $datasources.list.filter( let existingTypeCount = $datasources.list.filter(
ds => ds.type == integration.type ds => ds.source == integration.type
).length ).length
let baseName = IntegrationNames[integration.type] let baseName = IntegrationNames[integration.type]
@ -31,8 +31,8 @@
if (integration.plus) { if (integration.plus) {
updateDatasourceSchema(resp) updateDatasourceSchema(resp)
} }
await datasources.fetch()
await datasources.select(resp["_id"]) await datasources.select(resp["_id"])
console.log($datasources)
notifications.success(`Datasource updated successfully.`) notifications.success(`Datasource updated successfully.`)
} catch (err) { } catch (err) {
notifications.error(`Error saving datasource: ${err}`) notifications.error(`Error saving datasource: ${err}`)

Loading…
Cancel
Save