mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix bug ApiTemplate image create bug
This commit is contained in:
parent
783d0f6d45
commit
35a7ecf580
|
@ -452,7 +452,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('imageTemplateId', i),
|
||||
|
|
Loading…
Reference in a new issue