Skip to content

Commit 82379e7

Browse files
authored
Handling static JobEvent (#2934)
Signed-off-by: phixMe <peter.hicks@pdtechsolutions.com>
1 parent 5bb9be0 commit 82379e7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

web/src/components/jobs/JobDetailPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ const JobDetailPage: FunctionComponent<IProps> = (props) => {
127127
}
128128

129129
const lastFinished = (() => {
130-
const last = job.latestRuns.find((run) => run.state !== 'RUNNING')
130+
const last = job.latestRuns?.find((run) => run.state !== 'RUNNING')
131131
return last ? formatUpdatedAt(last.endedAt) : 'N/A'
132132
})()
133133

134134
const lastRuntime = (() => {
135-
const last = job.latestRuns.find((run) => run.state !== 'RUNNING')
135+
const last = job.latestRuns?.find((run) => run.state !== 'RUNNING')
136136
return last ? stopWatchDuration(last.durationMs) : 'N/A'
137137
})()
138138

@@ -274,7 +274,7 @@ const JobDetailPage: FunctionComponent<IProps> = (props) => {
274274
label={'Running Status'.toUpperCase()}
275275
value={
276276
<MqStatus
277-
label={job.latestRun?.state}
277+
label={job.latestRun?.state || 'N/A'}
278278
color={
279279
job.latestRun?.state
280280
? runStateColor(job.latestRun.state)

web/src/routes/table-level/TableLineageJobNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const TableLineageJobNode = ({ node }: TableLineageJobNodeProps & StateProps) =>
8888
color={
8989
job.latestRun?.state
9090
? runStateColor(job.latestRun?.state)
91-
: theme.palette.primary.main
91+
: theme.palette.secondary.main
9292
}
9393
/>
9494
</Box>

0 commit comments

Comments
 (0)