Skip to content

Commit

Permalink
BCF-3127 Fix blank screen when navigating to a job (#72)
Browse files Browse the repository at this point in the history
* Check for undefined attributes

* Add changeset

* Revert port change
  • Loading branch information
george-dorin authored Apr 3, 2024
1 parent d9ef282 commit b87b317
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-ducks-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@smartcontractkit/operator-ui': patch
---

Fixed a bug that caused the UI to go blank when a job was malformed
2 changes: 1 addition & 1 deletion src/screens/JobRun/JobRunView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const JobRunView = ({ run }: Props) => {
graph.forEach((node) => {
attrs[node.id] = {
...node.attributes,
status: attrs[node.id].status,
status: attrs[node.id]?.status,
}
})
}
Expand Down

0 comments on commit b87b317

Please sign in to comment.