From 9ba7e1f306f8d03a8a029e78f2f8916dd4ad572f Mon Sep 17 00:00:00 2001 From: Viduni Wickramarachchi Date: Wed, 11 Jun 2025 14:06:19 -0400 Subject: [PATCH] [Obs AI Assistant] Improve conversation callout (#223442) ## Summary Improve conversation callout rendering when the callout should not be displayed. ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 4a9b69fb22ca58a8058df9e851d117501066a658) # Conflicts: # x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/elastic_llm_conversation_callout.tsx --- .../src/chat/elastic_llm_conversation_callout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/elastic_llm_conversation_callout.tsx b/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/elastic_llm_conversation_callout.tsx index 6903baf919056..dd7b20bbbc565 100644 --- a/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/elastic_llm_conversation_callout.tsx +++ b/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/elastic_llm_conversation_callout.tsx @@ -31,7 +31,7 @@ export const ElasticLlmConversationCallout = () => { }; if (dismissed) { - return <>; + return null; } const elasticLlmCalloutClassName = css`