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:
commit
2c50eb2df1
|
@ -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
|
||||
}, {}),
|
||||
|
|
Loading…
Reference in New Issue