diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DatasourceSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DatasourceSelect.svelte index 8c23106881..bf0c30b184 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DatasourceSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DatasourceSelect.svelte @@ -20,6 +20,7 @@ export let value = {} export let otherSources + export let showAllQueries $: tables = $backendUiStore.tables.map(m => ({ label: m.name, @@ -36,8 +37,8 @@ return [...acc, ...viewsArr] }, []) $: queries = $backendUiStore.queries - .filter(query => query.queryVerb === "read" || query.readable) - .map(query => ({ + .filter(query => showAllQueries || (query.queryVerb === "read" || query.readable)) + .map(query => ({ label: query.name, name: query.name, tableId: query._id, diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte index d1890f883f..62584fbc93 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte @@ -4,4 +4,4 @@ const otherSources = [{ name: "Custom", label: "Custom" }] - + diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index a061498868..7f1d73f744 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -66,8 +66,8 @@ "non-existing-app-name", "App with same name already exists. Please try another app name.", value => - !existingAppNames.some(appName => - new RegExp(appName, "ig").test(value) + !existingAppNames.some( + appName => appName.toLowerCase() === value.toLowerCase() ) )