Skip to content

Commit e6e661a

Browse files
Merge pull request #1175 from spadgett/fix-operator-status-check
Fix runtime error when ClusterOperator has no `status` stanza
2 parents 6b859f6 + eadc6fe commit e6e661a

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
@@ -62,7 +62,7 @@ const ClusterOperatorRow: React.SFC<ClusterOperatorRowProps> = ({obj}) => {
6262
{message ? _.truncate(message, { length: 256, separator: ' ' }) : '-'}
6363
</div>
6464
<div className="col-md-3 col-sm-3 hidden-xs">
65-
{obj.status.version || <span className="text-muted">Unknown</span>}
65+
{_.get(obj, 'status.version') || <span className="text-muted">Unknown</span>}
6666
</div>
6767
</div>;
6868
};

0 commit comments

Comments
 (0)