Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

enhance: improve empty data display for detail panel (#8266)

DDDDD12138fe8191b89905
diff --git a/web/app/components/workflow/run/meta.tsx b/web/app/components/workflow/run/meta.tsx
index 86eb221ad92..b2d7269a51a 100644
--- a/web/app/components/workflow/run/meta.tsx
+++ b/web/app/components/workflow/run/meta.tsx
@@ -16,7 +16,7 @@ type Props = {
const MetaData: FC<Props> = ({
status,
executor,
- startTime = 0,
+ startTime,
time,
tokens,
steps = 1,
@@ -64,7 +64,7 @@ const MetaData: FC<Props> = ({
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
)}
{status !== 'running' && (
- <span>{formatTime(startTime, t('appLog.dateTimeFormat') as string)}</span>
+ <span>{startTime ? formatTime(startTime, t('appLog.dateTimeFormat') as string) : '-'}</span>
)}
</div>
</div>
@@ -75,7 +75,7 @@ const MetaData: FC<Props> = ({
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
)}
{status !== 'running' && (
- <span>{`${time?.toFixed(3)}s`}</span>
+ <span>{time ? `${time.toFixed(3)}s` : '-'}</span>
)}
</div>
</div>
diff --git a/web/app/components/workflow/run/status.tsx b/web/app/components/workflow/run/status.tsx
index 2eeafca95de..0677e434018 100644
--- a/web/app/components/workflow/run/status.tsx
+++ b/web/app/components/workflow/run/status.tsx
@@ -71,7 +71,7 @@ const StatusPanel: FC<ResultProps> = ({
<div className='w-16 h-2 rounded-sm bg-[rgba(0,0,0,0.05)]' />
)}
{status !== 'running' && (
- <span>{`${time?.toFixed(3)}s`}</span>
+ <span>{time ? `${time?.toFixed(3)}s` : '-'}</span>
)}
</div>
</div>