🐛 Do not error if expression on text resolves to undefined

This commit is contained in:
Jan Oberhauser 2019-10-16 13:49:08 +02:00
parent be8f0b9e35
commit 1173c998fc

View file

@ -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[] = [];