This commit is contained in:
mike12345567 2021-02-02 17:46:52 +00:00
parent ec21fcbc4d
commit 64f2228887
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ export const getBackendUiStore = () => {
},
save: async (datasourceId, query) => {
const integrations = get(store).integrations
const dataSource = get(store).datasources.filter(ds => ds._id === datasourceId)
const dataSource = get(store).datasources.filter(
ds => ds._id === datasourceId
)
// check if readable attribute is found
if (dataSource.length !== 0) {
const integration = integrations[dataSource[0].source]