diff --git a/web/src/components/LogsViewer.tsx b/web/src/components/LogsViewer.tsx index 5b94ce0..1cb9a9a 100644 --- a/web/src/components/LogsViewer.tsx +++ b/web/src/components/LogsViewer.tsx @@ -7,7 +7,7 @@ import { toast } from "sonner"; export type LogsType = { machine_id?: string; logs: string; - timestamp: number; + timestamp?: number; }[]; export function LogsViewer({ @@ -65,7 +65,7 @@ export function LogsViewer({ navigator.clipboard.writeText(x.logs); }} > - {!hideTimestamp && ( + {!hideTimestamp && x.timestamp != undefined && ( <> {new Date(x.timestamp * 1000).toLocaleString()}