From fb262e0f4a8b7ac6fd019a65f799c2da61feb634 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 26 Mar 2025 17:40:06 +0800 Subject: [PATCH] Improve empty history message handling --- .../src/components/documents/PipelineStatusDialog.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx b/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx index 43687f47..642285df 100644 --- a/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx +++ b/lightrag_webui/src/components/documents/PipelineStatusDialog.tsx @@ -179,9 +179,11 @@ export default function PipelineStatusDialog({ onScroll={handleScroll} className="font-mono text-sm rounded-md bg-zinc-800 text-zinc-100 p-3 overflow-y-auto min-h-[7.5em] max-h-[40vh]" > - {status?.history_messages?.map((msg, idx) => ( -
{msg}
- )) || '-'} + {status?.history_messages?.length ? ( + status.history_messages.map((msg, idx) => ( +
{msg}
+ )) + ) : '-'}