mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix: handle some status cases with non-existent k8s pods (#3489)
This commit is contained in:
parent
6ab6d6fd3a
commit
97d7ae21e4
@ -18,10 +18,13 @@ export default function Component({ service }) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (statsError || statusError) {
|
if (statsError || statusError) {
|
||||||
return <Container service={service} error={statsError ?? statusError} />;
|
return <Container service={service} error={statsError ?? statusError ?? statusData} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusData && !(statusData.status.includes("running") || statusData.status.includes("partial"))) {
|
if (
|
||||||
|
statusData &&
|
||||||
|
(!statusData.status || !(statusData.status.includes("running") || statusData.status.includes("partial")))
|
||||||
|
) {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Block label={t("widget.status")} value={t("docker.offline")} />
|
<Block label={t("widget.status")} value={t("docker.offline")} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user