Skip to content

Commit a972c04

Browse files
authored
Handle null job.latestRun before runStateColor (#2467)
* Handle null `job.latestRun` before `runStateColor` Signed-off-by: Perttu Salonen <perttu.salonen@gmail.com> * generate default color with `NEW` `runState` Signed-off-by: Perttu Salonen <perttu.salonen@gmail.com> * added changelog description Signed-off-by: Perttu Salonen <perttu.salonen@gmail.com> --------- Signed-off-by: Perttu Salonen <perttu.salonen@gmail.com>
1 parent cf0ba3e commit a972c04

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased](https://github.com/MarquezProject/marquez/compare/0.32.0...HEAD)
44

5+
### Fixed
6+
7+
* UI: better handling of null job latestRun for Jobs page [#2467](https://github.com/MarquezProject/marquez/pull/2467) [@perttus](https://github.com/perttus)
8+
59
### Added
610

711
* Support `inputFacets` and `outputFacets` from Openlineage specificatio [`#2417`](https://github.com/MarquezProject/marquez/pull/2417) [@pawel-big-lebowski]( https://github.com/pawel-big-lebowski)

web/src/routes/jobs/Jobs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ class Jobs extends React.Component<JobsProps> {
118118
</TableCell>
119119
<TableCell key={i18next.t('jobs_route.latest_run_col')} align='left'>
120120
<MqStatus
121-
color={runStateColor(job.latestRun.state)}
122-
label={job.latestRun.state}
121+
color={job.latestRun && runStateColor(job.latestRun.state || 'NEW')}
122+
label={job.latestRun && job.latestRun.state ? job.latestRun.state : 'N/A'}
123123
/>
124124
</TableCell>
125125
</TableRow>

0 commit comments

Comments
 (0)