Improve empty history message handling

This commit is contained in:
yangdx
2025-03-26 17:40:06 +08:00
parent f26afff710
commit fb262e0f4a

View File

@@ -179,9 +179,11 @@ export default function PipelineStatusDialog({
onScroll={handleScroll} 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]" 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) => ( {status?.history_messages?.length ? (
status.history_messages.map((msg, idx) => (
<div key={idx}>{msg}</div> <div key={idx}>{msg}</div>
)) || '-'} ))
) : '-'}
</div> </div>
</div> </div>
</div> </div>