1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00
This commit is contained in:
mike12345567 2021-02-02 17:46:52 +00:00
parent 2d82969350
commit 78a10e8e43

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]