From e9f667136e4fd31d156b90ed10107c786aca04de Mon Sep 17 00:00:00 2001 From: breeg554 Date: Fri, 4 Oct 2024 17:59:03 +0200 Subject: [PATCH] handle workflows without suggestions and description --- .../web-remix/app/components/chat/Webchat.tsx | 26 ++++++++++--------- apps/web-remix/package.json | 2 +- apps/web-remix/pnpm-lock.yaml | 10 +++---- packages/buildel/package.json | 2 +- packages/buildel/src/buildel.ts | 4 +-- 5 files changed, 23 insertions(+), 21 deletions(-) diff --git a/apps/web-remix/app/components/chat/Webchat.tsx b/apps/web-remix/app/components/chat/Webchat.tsx index 4834e2d72..a4ae98ea2 100644 --- a/apps/web-remix/app/components/chat/Webchat.tsx +++ b/apps/web-remix/app/components/chat/Webchat.tsx @@ -271,20 +271,22 @@ ${JSON.stringify(files)} className={cn('max-w-[820px] mx-auto', { hidden: !!messages.length || - !pipeline.interface_config.suggested_messages.length, + !(pipeline.interface_config.suggested_messages || []).length, })} > - {pipeline.interface_config.suggested_messages.map((msg, index) => { - return ( - - ); - })} + {(pipeline.interface_config.suggested_messages || []).map( + (msg, index) => { + return ( + + ); + }, + )}