diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml
index f4c17b64ea..e03768a420 100644
--- a/.github/workflows/budibase_ci.yml
+++ b/.github/workflows/budibase_ci.yml
@@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
- node-version: [10.x]
+ node-version: [12.x]
steps:
- uses: actions/checkout@v2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2cfe328312..290f614e20 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
- node-version: [10.x]
+ node-version: [12.x]
steps:
- uses: actions/checkout@v2
diff --git a/packages/builder/src/components/automation/SetupPanel/ParamInputs/RecordSelector.svelte b/packages/builder/src/components/automation/SetupPanel/ParamInputs/RecordSelector.svelte
index a9f9286ef2..1e52ea33a1 100644
--- a/packages/builder/src/components/automation/SetupPanel/ParamInputs/RecordSelector.svelte
+++ b/packages/builder/src/components/automation/SetupPanel/ParamInputs/RecordSelector.svelte
@@ -12,6 +12,10 @@
// Ensure any nullish modelId values get set to empty string so
// that the select works
$: if (value?.modelId == null) value = { modelId: "" }
+
+ function schemaHasOptions(schema) {
+ return !!schema.constraints?.inclusion?.length
+ }
@@ -27,18 +31,15 @@
{#each schemaFields as [field, schema]}
- {#if schema.constraints?.inclusion?.length}
+ {#if schemaHasOptions(schema)}
{field}
-