diff --git a/dinky-web/src/pages/DevOps/JobDetail/JobLogs/components/ExceptionTab.tsx b/dinky-web/src/pages/DevOps/JobDetail/JobLogs/components/ExceptionTab.tsx index ca878dda83..9ab2e40508 100644 --- a/dinky-web/src/pages/DevOps/JobDetail/JobLogs/components/ExceptionTab.tsx +++ b/dinky-web/src/pages/DevOps/JobDetail/JobLogs/components/ExceptionTab.tsx @@ -46,13 +46,13 @@ const ExceptionTab = (props: JobProps) => { const renderLogTab = () => { let logs = []; - const rte = jobDetail?.jobDataDto?.exceptions['root-exception']; + const rte = jobDetail?.jobDataDto?.exceptions?.['root-exception'] ?? undefined; logs.push({ taskName: 'RootException', stacktrace: rte, exceptionName: rte }); - logs.push(...jobDetail.jobDataDto?.exceptions['exceptionHistory']['entries']); + logs.push(...jobDetail.jobDataDto?.exceptions?.['exceptionHistory']?.['entries'] ?? []); return (