ui: hide log jump if no ts

This commit is contained in:
nick-delirium 2024-10-29 17:16:38 +01:00
parent fc63e4d83d
commit 086ade9595
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -59,10 +59,8 @@ export function LogRow({
return 'border-l border-l-4 border-gray-lighter';
};
return (
<div
className={'code-font relative group'}
>
<JumpButton onClick={() => onJump(new Date(log.timestamp).getTime())} />
<div className={'code-font relative group'}>
{log.timestamp === 'N/A' ? null : <JumpButton onClick={() => onJump(new Date(log.timestamp).getTime())} />}
<div
className={cn(
'text-sm grid items-center py-2 px-4',