Some changes in ui

This commit is contained in:
singh-kanwarpreet committed 2025-07-30 00:01:27 +05:30
1 parent dbea93f9ba
commit af010e138d
1 file changed
+2 -3
@@ -26,8 +26,8 @@ const SettingsGlobalThresholds = ({
temperature: "",
});
// Load existing thresholds from settingsData on first render or when settingsData changes
useEffect(() => {
// Load existing thresholds from settingsData
if (settingsData?.settings?.globalThresholds) {
setThresholds({
cpu: settingsData.settings.globalThresholds.cpu || "",
@@ -36,7 +36,6 @@ const SettingsGlobalThresholds = ({
temperature: settingsData.settings.globalThresholds.temperature || "",
});
}
}, [settingsData]);
// Handles input change and updates state & parent data
const handleChange = (e, min, max) => {