mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
Fix: handle some status cases with non-existent k8s pods (#3489)
This commit is contained in:
parent
6ab6d6fd3a
commit
97d7ae21e4
1 changed files with 5 additions and 2 deletions
|
@ -18,10 +18,13 @@ export default function Component({ service }) {
|
|||
);
|
||||
|
||||
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 (
|
||||
<Container>
|
||||
<Block label={t("widget.status")} value={t("docker.offline")} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue