From 09312e133b341b25a8b6e73f0d98d258eb5d7812 Mon Sep 17 00:00:00 2001 From: Jozef Daxner Date: Tue, 1 Apr 2025 17:25:46 +0200 Subject: [PATCH] [NAB-376] Action Edtitor Groovy tutorial - clicking on Groovy Tutorial no longer adds undefined word into action editor --- .../action-editor-menu/action-editor-menu.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modeler/actions-mode/action-editor/action-editor-menu/action-editor-menu.component.ts b/src/app/modeler/actions-mode/action-editor/action-editor-menu/action-editor-menu.component.ts index 7314708..e06e57d 100644 --- a/src/app/modeler/actions-mode/action-editor/action-editor-menu/action-editor-menu.component.ts +++ b/src/app/modeler/actions-mode/action-editor/action-editor-menu/action-editor-menu.component.ts @@ -37,7 +37,7 @@ export class ActionEditorMenuComponent implements OnInit { } addTextToEditor(text: string): void { - this.actionItemProviderService.insertText(this.editor, `${text}\n`, 'command'); + this.actionItemProviderService.insertText(this.editor, !!text ? `${text}\n` : text, 'command'); } handleClick(item: CommandAction): void {