Skip to content

Commit

Permalink
Try fixing #275
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqiuw committed Nov 10, 2021
1 parent be5fa37 commit ae8cb47
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 ae8cb47

Please sign in to comment.