Skip to content

Commit 09312e1

Browse files
committed
[NAB-376] Action Edtitor Groovy tutorial
- clicking on Groovy Tutorial no longer adds undefined word into action editor
1 parent 801cd32 commit 09312e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modeler/actions-mode/action-editor/action-editor-menu/action-editor-menu.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class ActionEditorMenuComponent implements OnInit {
3737
}
3838

3939
addTextToEditor(text: string): void {
40-
this.actionItemProviderService.insertText(this.editor, `${text}\n`, 'command');
40+
this.actionItemProviderService.insertText(this.editor, !!text ? `${text}\n` : text, 'command');
4141
}
4242

4343
handleClick(item: CommandAction): void {

0 commit comments

Comments
 (0)