diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.ts index 5579075e..533b6817 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.ts @@ -216,6 +216,7 @@ export class CdsIntentComponent implements OnInit, OnDestroy, OnChanges { if(!this.actionIntent){ this.actionIntent = this.intentService.createNewAction(TYPE_ACTION.INTENT); } + // set __isLast as true only for the last 'intent' action type in the list this.actionIntent['__isLast'] = true; this.intent.actions.push(this.actionIntent); // this.intent.actions = this.intent.actions.map(function(action) {