feat(ui): improve workflow runs history

This commit is contained in:
Fu Diwei
2025-01-19 06:15:38 +08:00
parent 5b613bcf84
commit c0dc9b1882
3 changed files with 16 additions and 8 deletions

View File

@@ -42,12 +42,12 @@ const WorkflowRunDetailDrawer = ({ data, loading, trigger, ...props }: WorkflowR
<div className="mt-4 rounded-md bg-black p-4 text-stone-200">
<div className="flex flex-col space-y-3">
{data!.logs.map((item, i) => {
{data!.logs?.map((item, i) => {
return (
<div key={i} className="flex flex-col space-y-2">
<div>{item.nodeName}</div>
<div className="flex flex-col space-y-1">
{item.outputs.map((output, j) => {
{item.outputs?.map((output, j) => {
return (
<div key={j} className="flex space-x-2 text-sm" style={{ wordBreak: "break-word" }}>
<div className="whitespace-nowrap">[{dayjs(output.time).format("YYYY-MM-DD HH:mm:ss")}]</div>