From 07d5c7e45925376828e44c32e75d9684fa974674 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Wed, 8 Nov 2023 10:42:12 +0100 Subject: [PATCH] comment added --- .../cds-dashboard/cds-canvas/cds-intent/cds-intent.component.ts | 1 + 1 file changed, 1 insertion(+) 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) {