From 7fbfd7110d9d6e2c19365d80838405205679efb1 Mon Sep 17 00:00:00 2001 From: Greg Richardson Date: Tue, 11 Jun 2024 13:23:04 -0600 Subject: [PATCH] fix(db-playground): ai response hidden in chat --- apps/database-playground/app/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/database-playground/app/page.tsx b/apps/database-playground/app/page.tsx index d67895c1e2c..a9622a52c9d 100644 --- a/apps/database-playground/app/page.tsx +++ b/apps/database-playground/app/page.tsx @@ -244,9 +244,10 @@ export default function Page() { {messages.length > 0 ? (
{messages - // Don't include tool calls that don't have an associated UI .filter( (message) => + message.content || + // Don't include tool calls that don't have an associated UI !message.toolInvocations?.every((t) => t.toolName !== 'generateChart') ) .map((message) => {