1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

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

View file

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