Fix: Improve error handling for Glances widgets when host is unreachable (#3657)

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Matt Sullivanandshamoon authored and GitHub committed 2024-06-23 09:43:51 -07:00
1 parent ec448d6c41
commit f07d595ed9
10 files changed
+53 -76

No files matched your search

+1 -6
View File
@@ -1,6 +1,5 @@
import { useTranslation } from "next-i18next";
import Error from "../components/error";
import Container from "../components/container";
import Block from "../components/block";
@@ -20,11 +19,7 @@ export default function Component({ service }) {
});
if (error) {
return (
<Container chart={chart}>
<Error error={error} />
</Container>
);
return <Container error={error} widget={widget} />;
}
if (!data) {