From db446afd362c6d757322430a40b29f5b11d76ba2 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 4 Jul 2022 17:01:40 +0100 Subject: [PATCH] Data providers are excluded from the Form Schema picker --- .../PropertyControls/DataSourceSelect.svelte | 3 ++- .../PropertiesPanel/PropertyControls/SchemaSelect.svelte | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte index 3041e62695..3e406b1b66 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte @@ -25,6 +25,7 @@ export let otherSources export let showAllQueries export let bindings = [] + export let showDataProviders = true const dispatch = createEventDispatcher() const arrayTypes = ["attachment", "array"] @@ -258,7 +259,7 @@ {/each} {/if} - {#if dataProviders?.length} + {#if showDataProviders && dataProviders?.length}
Data Providers diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte index b21f2c3bd5..80e36328f1 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte @@ -4,4 +4,10 @@ const otherSources = [{ name: "Custom", label: "Custom" }] - +