File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments