mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 20:29:08 +00:00
🐛 Do not error if expression on text resolves to undefined
This commit is contained in:
@@ -511,7 +511,7 @@ export class EditImage implements INodeType {
|
|||||||
const lineLength = this.getNodeParameter('lineLength') as number;
|
const lineLength = this.getNodeParameter('lineLength') as number;
|
||||||
const positionX = this.getNodeParameter('positionX') as number;
|
const positionX = this.getNodeParameter('positionX') as number;
|
||||||
const positionY = this.getNodeParameter('positionY') 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
|
// Split the text in multiple lines
|
||||||
const lines: string[] = [];
|
const lines: string[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user