From 2ca4dec7005ba48daf4df6b50e8f7315c69516a5 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 19 Dec 2024 17:15:28 +0100 Subject: [PATCH 1/5] Clean code --- packages/builder/src/stores/builder/tables.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/builder/src/stores/builder/tables.ts b/packages/builder/src/stores/builder/tables.ts index 31b3a64b5b..d7eb7d89f2 100644 --- a/packages/builder/src/stores/builder/tables.ts +++ b/packages/builder/src/stores/builder/tables.ts @@ -141,9 +141,6 @@ export class TableStore extends DerivedBudiStore< } async delete(table: { _id: string; _rev: string }) { - if (!table?._id) { - return - } await API.deleteTable(table._id, table._rev) this.replaceTable(table._id, null) } From 59a98ec0cb05da9cbe7798e731b116f472a3c17a Mon Sep 17 00:00:00 2001 From: andz-bb Date: Thu, 19 Dec 2024 16:24:21 +0000 Subject: [PATCH 2/5] support placeholder values in datasource config fields --- .../backend/Datasources/ConfigEditor/ConfigInput.svelte | 2 ++ .../backend/Datasources/ConfigEditor/fields/LongForm.svelte | 3 ++- .../backend/Datasources/ConfigEditor/fields/Select.svelte | 2 ++ .../backend/Datasources/ConfigEditor/fields/String.svelte | 2 ++ .../components/backend/Datasources/ConfigEditor/index.svelte | 3 ++- .../backend/Datasources/ConfigEditor/stores/validatedConfig.js | 1 + packages/types/src/sdk/datasources.ts | 1 + 7 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte b/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte index 70f2ffef46..569f77d5ce 100644 --- a/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte +++ b/packages/builder/src/components/backend/Datasources/ConfigEditor/ConfigInput.svelte @@ -12,6 +12,7 @@ export let name export let config export let showModal = () => {} + export let placeholder const selectComponent = type => { if (type === "object") { @@ -40,6 +41,7 @@ {name} {config} {showModal} + {placeholder} on:blur on:change /> diff --git a/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte b/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte index efbeb007e8..6b366a882e 100644 --- a/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte +++ b/packages/builder/src/components/backend/Datasources/ConfigEditor/fields/LongForm.svelte @@ -5,11 +5,12 @@ export let name export let value export let error + export let placeholder
-