From b4a90fbf245804db334870cbdff70f7c2a5da255 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Sat, 22 Jun 2024 13:06:11 -0700
Subject: [PATCH] Update container.jsx
---
src/widgets/glances/components/container.jsx | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/widgets/glances/components/container.jsx b/src/widgets/glances/components/container.jsx
index 920fb71b1..ebbe3d986 100644
--- a/src/widgets/glances/components/container.jsx
+++ b/src/widgets/glances/components/container.jsx
@@ -8,13 +8,20 @@ export default function Container({ children, widget, error = null, chart = true
const { settings } = useContext(SettingsContext);
const hideErrors = settings.hideErrors || widget?.hideErrors;
+ if (error) {
+ if (hideErrors) {
+ return null;
+ }
+
+ return