From 0371e3747019e445e0dd271a37629f20008ca3aa Mon Sep 17 00:00:00 2001 From: Nicola Lanzilotto Date: Mon, 8 Apr 2024 19:18:40 +0200 Subject: [PATCH] Minor improvements --- .../bots/bots-list/chatbot-alert/chatbot-alert.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/bots/bots-list/chatbot-alert/chatbot-alert.component.ts b/src/app/bots/bots-list/chatbot-alert/chatbot-alert.component.ts index c94d3024224d..4178d20c92ba 100644 --- a/src/app/bots/bots-list/chatbot-alert/chatbot-alert.component.ts +++ b/src/app/bots/bots-list/chatbot-alert/chatbot-alert.component.ts @@ -61,8 +61,10 @@ export class ChatbotAlertComponent extends PricingBaseComponent implements OnIni takeUntil(this.unsubscribe$) ) .subscribe((project) => { - this.project = project; - this.projectId = project._id + if (project) { + this.project = project; + this.projectId = project._id + } }) }