Skip to content

Commit

Permalink
Merge pull request #284 from skooner-k8s/fix_#275
Browse files Browse the repository at this point in the history
Try fixing #275
  • Loading branch information
herbrandson authored Nov 10, 2021
2 parents be5fa37 + ae8cb47 commit 45cce6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/views/pod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export default class PodView extends Base<Props, State> {

function getErrors(item?: Pod) {
if (!item) return [];
if (item.status.message) return [item.status.message];
if (item.status.conditions) return item.status.conditions.map(x => x.message).filter(x => !!x);
if (item.status && item.status.message) return [item.status.message];
if (item.status && item.status.conditions) return item.status.conditions.map(x => x.message).filter(x => !!x);

return undefined;
}

0 comments on commit 45cce6e

Please sign in to comment.