Преглед изворни кода

Merge pull request #277 from porter-dev/beta.3.metrics

fixed display out of memory error on initial tab
jusrhee пре 5 година
родитељ
комит
7ee5588734

+ 3 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/status/ControllerTab.tsx

@@ -73,6 +73,9 @@ export default class ControllerTab extends Component<PropsType, StateType> {
         this.setState({ pods, raw: res.data, showTooltip });
         this.setState({ pods, raw: res.data, showTooltip });
 
 
         if (isFirst) {
         if (isFirst) {
+          let pod = res.data[0];
+          let status = this.getPodStatus(pod.status);
+          (status === "failed" && pod.status?.message) && this.props.setPodError(pod.status?.message);
           selectPod(res.data[0]);
           selectPod(res.data[0]);
         }
         }
       })
       })