mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
🐛 Fix SendGrid dynamic field generation (#1631)
This commit is contained in:
parent
8276cdfda1
commit
f74ddb5221
|
@ -361,10 +361,9 @@ export class SendGrid implements INodeType {
|
|||
};
|
||||
|
||||
if (fields) {
|
||||
body.personalizations[0].dynamic_template_data = {}
|
||||
fields.forEach(field => {
|
||||
body.personalizations[0].dynamic_template_data = {
|
||||
[field.key]: field.value,
|
||||
};
|
||||
body.personalizations[0].dynamic_template_data![field.key] = field.value;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue