mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Fix bug ApiTemplate pdf create bug
This commit is contained in:
parent
4996939268
commit
dd01ceaca8
|
@ -532,7 +532,10 @@ export class ApiTemplateIo implements INodeType {
|
||||||
try {
|
try {
|
||||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||||
|
|
||||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
let options: IDataObject = {};
|
||||||
|
if (download) {
|
||||||
|
options = this.getNodeParameter('options', i) as IDataObject;
|
||||||
|
}
|
||||||
|
|
||||||
const qs = {
|
const qs = {
|
||||||
template_id: this.getNodeParameter('pdfTemplateId', i),
|
template_id: this.getNodeParameter('pdfTemplateId', i),
|
||||||
|
|
Loading…
Reference in a new issue