Clean outputs
This commit is contained in:
parent
b12641e467
commit
173a9cb75a
|
@ -140,7 +140,12 @@ export async function externalTrigger(
|
||||||
}
|
}
|
||||||
params.fields = coercedFields
|
params.fields = coercedFields
|
||||||
} else if (sdk.automations.isRowAction(automation)) {
|
} else if (sdk.automations.isRowAction(automation)) {
|
||||||
params = { ...params, ...params.fields }
|
params = {
|
||||||
|
...params,
|
||||||
|
// Until we don't refactor all the types, we want to flatten the nested "fields" object
|
||||||
|
...params.fields,
|
||||||
|
fields: {},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const data: AutomationData = { automation, event: params }
|
const data: AutomationData = { automation, event: params }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue