Skip to content

Commit

Permalink
[Bug-4131]Bug fix for reading 'root-exception' (#4132)
Browse files Browse the repository at this point in the history
Co-authored-by: GH Action - Upstream Sync <[email protected]>
  • Loading branch information
MactavishCui and actions-user authored Jan 9, 2025
1 parent 4b60ab2 commit 0b782af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Row>
<Col span={3}>
Expand Down

0 comments on commit 0b782af

Please sign in to comment.