Merge pull request #9589 from Budibase/fix/datasource-plugin-error

Datasource plugin app error
This commit is contained in:
Michael Drury 2023-02-09 08:56:27 +00:00 committed by GitHub
commit a3c9486fac
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,6 @@ import { invalidateDynamicVariables } from "../../threads/utils"
import { db as dbCore, context, events } from "@budibase/backend-core"
import { UserCtx, Datasource, Row } from "@budibase/types"
import sdk from "../../sdk"
import { mergeConfigs } from "../../sdk/app/datasources/datasources"
export async function fetch(ctx: UserCtx) {
// Get internal tables

View File

@ -65,6 +65,9 @@ export async function removeSecrets(datasources: Datasource[]) {
const definitions = await getDefinitions()
for (let datasource of datasources) {
const schema = definitions[datasource.source]
if (!schema) {
continue
}
if (datasource.config) {
// strip secrets from response, so they don't show in the network request
if (datasource.config.auth) {