Improve empty history message handling
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user