diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index 1af40694a3..7b189ad109 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -53,6 +53,7 @@ : { schema: {} } $: schema = getSchemaForTable(tableId, { searchableSchema: true }).schema $: schemaFields = Object.values(schema || {}) + $: queryLimit = tableId?.includes("datasource") ? "∞" : "1000" const onChange = Utils.sequential(async (e, key) => { try { @@ -330,6 +331,7 @@ on:change={e => onChange(e, key)} {bindings} updateOnChange={false} + placeholder={value.customType === "queryLimit" ? queryLimit : ""} /> {/if} diff --git a/packages/server/src/automations/steps/queryRows.js b/packages/server/src/automations/steps/queryRows.js index 62f7659589..d4bc5fe076 100644 --- a/packages/server/src/automations/steps/queryRows.js +++ b/packages/server/src/automations/steps/queryRows.js @@ -50,6 +50,7 @@ exports.definition = { limit: { type: "number", title: "Limit", + customType: "queryLimit", }, }, required: ["tableId"],