From 432a42204ee4f2c883ba8548ae49476a27de4fdf Mon Sep 17 00:00:00 2001 From: Marek Mihok Date: Tue, 13 Feb 2024 10:45:26 +0100 Subject: [PATCH] chore: improve prompts presence condition #2250 --- ui/src/chatbot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/chatbot.tsx b/ui/src/chatbot.tsx index d5242bd09d..dc271e394a 100644 --- a/ui/src/chatbot.tsx +++ b/ui/src/chatbot.tsx @@ -238,7 +238,7 @@ export const XChatbot = (props: Chatbot) => { ))} - {props.prompt_suggestions && + {props.prompt_suggestions && props.prompt_suggestions.length > 0 &&
{props.prompt_suggestions.map(({ name, label }) => ( handleSuggestion(name)} className={css.suggestion}>