From ea06d44bca626fe0d16f5b39d029f23b98ca6410 Mon Sep 17 00:00:00 2001 From: Dario De Pascalis Date: Tue, 21 Jan 2025 17:16:41 +0100 Subject: [PATCH] bug fix: copy and paste intent/action from different chatbots --- src/app/chatbot-design-studio/services/intent.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/chatbot-design-studio/services/intent.service.ts b/src/app/chatbot-design-studio/services/intent.service.ts index e8f104b8..1b1448c9 100644 --- a/src/app/chatbot-design-studio/services/intent.service.ts +++ b/src/app/chatbot-design-studio/services/intent.service.ts @@ -293,7 +293,9 @@ export class IntentService { /** create a new intent when drag an action on the stage */ public createNewIntent(id_faq_kb: string, action: any, pos:any){ let intent = new Intent(); - intent.id_faq_kb = id_faq_kb; + // intent.id_faq_kb = id_faq_kb; + const chatbot_id = this.dashboardService.id_faq_kb; + intent.id_faq_kb = chatbot_id; intent.attributes.position = pos; intent.intent_display_name = this.setDisplayName(); // let actionIntent = this.createNewAction(TYPE_ACTION.INTENT);