fixing wrong filter, excluding just bb_internal
This commit is contained in:
parent
0b8e0309f6
commit
0687d7c235
|
@ -3,7 +3,7 @@
|
||||||
import { datasources, integrations, queries } from "stores/backend"
|
import { datasources, integrations, queries } from "stores/backend"
|
||||||
import BindingBuilder from "components/integration/QueryBindingBuilder.svelte"
|
import BindingBuilder from "components/integration/QueryBindingBuilder.svelte"
|
||||||
import IntegrationQueryEditor from "components/integration/index.svelte"
|
import IntegrationQueryEditor from "components/integration/index.svelte"
|
||||||
import { IntegrationTypes } from "constants/backend"
|
import { BUDIBASE_DATASOURCE_ID } from "constants/backend"
|
||||||
|
|
||||||
export let parameters
|
export let parameters
|
||||||
export let bindings = []
|
export let bindings = []
|
||||||
|
@ -14,9 +14,7 @@
|
||||||
)
|
)
|
||||||
// Executequery action just works on PostgreSQL and MongoDB datasources
|
// Executequery action just works on PostgreSQL and MongoDB datasources
|
||||||
$: executeQueryDatasources = $datasources.list.filter(
|
$: executeQueryDatasources = $datasources.list.filter(
|
||||||
x =>
|
x => x._id !== BUDIBASE_DATASOURCE_ID
|
||||||
x.source === IntegrationTypes.POSTGRES ||
|
|
||||||
x.source === IntegrationTypes.MONGODB
|
|
||||||
)
|
)
|
||||||
|
|
||||||
function fetchQueryDefinition(query) {
|
function fetchQueryDefinition(query) {
|
||||||
|
|
|
@ -163,6 +163,8 @@ export const SWITCHABLE_TYPES = [
|
||||||
...ALLOWABLE_NUMBER_TYPES,
|
...ALLOWABLE_NUMBER_TYPES,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
export const BUDIBASE_DATASOURCE_ID = "bb_internal"
|
||||||
|
|
||||||
export const IntegrationTypes = {
|
export const IntegrationTypes = {
|
||||||
POSTGRES: "POSTGRES",
|
POSTGRES: "POSTGRES",
|
||||||
MONGODB: "MONGODB",
|
MONGODB: "MONGODB",
|
||||||
|
|
Loading…
Reference in New Issue