From b87b317a4c2f45387c13956418878768a0222ec8 Mon Sep 17 00:00:00 2001 From: george-dorin <120329946+george-dorin@users.noreply.github.com> Date: Wed, 3 Apr 2024 14:18:43 +0300 Subject: [PATCH] BCF-3127 Fix blank screen when navigating to a job (#72) * Check for undefined attributes * Add changeset * Revert port change --- .changeset/shy-ducks-reply.md | 5 +++++ src/screens/JobRun/JobRunView.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/shy-ducks-reply.md diff --git a/.changeset/shy-ducks-reply.md b/.changeset/shy-ducks-reply.md new file mode 100644 index 00000000..132f1662 --- /dev/null +++ b/.changeset/shy-ducks-reply.md @@ -0,0 +1,5 @@ +--- +'@smartcontractkit/operator-ui': patch +--- + +Fixed a bug that caused the UI to go blank when a job was malformed diff --git a/src/screens/JobRun/JobRunView.tsx b/src/screens/JobRun/JobRunView.tsx index e3c6d3a7..fcd8db3e 100644 --- a/src/screens/JobRun/JobRunView.tsx +++ b/src/screens/JobRun/JobRunView.tsx @@ -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, } }) }