Improve empty history message handling
This commit is contained in:
parent
f26afff710
commit
fb262e0f4a
1 changed files with 5 additions and 3 deletions
|
|
@ -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 ? (
|
||||||
<div key={idx}>{msg}</div>
|
status.history_messages.map((msg, idx) => (
|
||||||
)) || '-'}
|
<div key={idx}>{msg}</div>
|
||||||
|
))
|
||||||
|
) : '-'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue