Merge pull request #7727 from Budibase/bug/sev3/create-app-action-automation-error

Null safety when creating automation from design
This commit is contained in:
Martin McKeaveney 2022-09-12 09:20:36 +01:00 committed by GitHub
commit 2c50eb2df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
)
newBlock.inputs = {
fields: Object.keys(parameters.fields).reduce((fields, key) => {
fields: Object.keys(parameters.fields ?? {}).reduce((fields, key) => {
fields[key] = "string"
return fields
}, {}),