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

This commit is contained in:
DDDDD12138 2024-09-11 18:24:18 +08:00 • committed by GitHub
commit fe8191b899
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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>