From 1173c998fc9ac9b9c320b79133a46157c7dcdcb2 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 16 Oct 2019 13:49:08 +0200 Subject: [PATCH] :bug: Do not error if expression on text resolves to undefined --- packages/nodes-base/nodes/EditImage.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/EditImage.node.ts b/packages/nodes-base/nodes/EditImage.node.ts index eba7d6cd7..b08bd88f4 100644 --- a/packages/nodes-base/nodes/EditImage.node.ts +++ b/packages/nodes-base/nodes/EditImage.node.ts @@ -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[] = [];