From d586ee725eaa61f8f3b8491c8d653f04fc858140 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Wed, 6 Nov 2024 12:11:36 +0100 Subject: [PATCH] minor fix --- .../cds-chatbot-details/detail/detail.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/chatbot-design-studio/cds-chatbot-details/detail/detail.component.ts b/src/app/chatbot-design-studio/cds-chatbot-details/detail/detail.component.ts index 6a8f387e..81f7f5b6 100644 --- a/src/app/chatbot-design-studio/cds-chatbot-details/detail/detail.component.ts +++ b/src/app/chatbot-design-studio/cds-chatbot-details/detail/detail.component.ts @@ -257,7 +257,10 @@ export class CDSDetailBotDetailComponent extends BotsBaseComponent implements On if (this.selectedChatbot._id) { let url = this.imageRepoService.getImagePhotoUrl(this.selectedChatbot._id) this.checkImageExists(url, (existImage)=> { - existImage? this.selectedChatbot.imageURL = url: null; + if(existImage){ + this.selectedChatbot.imageURL = url; + this.imageURL = url + } }) }