Skip to content

Commit eadc6fe

Browse files
committed
Fix runtime error when ClusterOperator has not status stanza
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1673201
1 parent 941b569 commit eadc6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/public/components/cluster-settings/cluster-operator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const ClusterOperatorRow: React.SFC<ClusterOperatorRowProps> = ({obj}) => {
8181
{message ? _.truncate(message, { length: 256, separator: ' ' }) : '-'}
8282
</div>
8383
<div className="col-md-3 col-sm-3 hidden-xs">
84-
{obj.status.version || <span className="text-muted">Unknown</span>}
84+
{_.get(obj, 'status.version') || <span className="text-muted">Unknown</span>}
8585
</div>
8686
</div>;
8787
};

0 commit comments

Comments
 (0)