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
7d05a19dae
|
@ -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