Skip to content

Commit

Permalink
Handle null run.jobVersion in DatasetInfo (#2471)
Browse files Browse the repository at this point in the history
* handle null run.jobVersion

Signed-off-by: Perttu Salonen <[email protected]>

* updated changelog

Signed-off-by: Perttu Salonen <[email protected]>

---------

Signed-off-by: Perttu Salonen <[email protected]>
  • Loading branch information
perttus committed Apr 17, 2023
1 parent a972c04 commit 7f80746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed

* UI: Handle null `run.jobVersion` in `DatasetInfo.tsx` to fix rendering issues.
* UI: better handling of null job latestRun for Jobs page [#2467](https://github.com/MarquezProject/marquez/pull/2467) [@perttus](https://github.com/perttus)

### Added
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/datasets/DatasetInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const DatasetInfo: FunctionComponent<DatasetInfoProps> = props => {
<MqText subdued>{stopWatchDuration(run.durationMs)}</MqText>
</Box>
</Box>
<MqText subdued>{run.jobVersion.name}</MqText>
<MqText subdued>{run.jobVersion && run.jobVersion.name}</MqText>
</Box>
{<MqCode code={(jobFacets?.sql as SqlFacet)?.query} language={'sql'}/>}
</Box>
Expand Down

0 comments on commit 7f80746

Please sign in to comment.