mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Do not error if expression on text resolves to undefined
This commit is contained in:
parent
be8f0b9e35
commit
1173c998fc
|
@ -511,7 +511,7 @@ export class EditImage implements INodeType {
|
|||
const lineLength = this.getNodeParameter('lineLength') as number;
|
||||
const positionX = this.getNodeParameter('positionX') as number;
|
||||
const positionY = this.getNodeParameter('positionY') as number;
|
||||
const text = this.getNodeParameter('text') as string;
|
||||
const text = this.getNodeParameter('text') as string || '';
|
||||
|
||||
// Split the text in multiple lines
|
||||
const lines: string[] = [];
|
||||
|
|
Loading…
Reference in a new issue