🐛 Fix bug ApiTemplate pdf create bug

This commit is contained in:
Jan Oberhauser 2021-12-11 19:41:36 +01:00
parent 4996939268
commit dd01ceaca8

View file

@ -532,7 +532,10 @@ export class ApiTemplateIo implements INodeType {
try {
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 = {
template_id: this.getNodeParameter('pdfTemplateId', i),