From 87b76c6a02dd065bd3fd3438ec8cddadbb4da949 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 3 Feb 2026 10:04:30 -0600 Subject: [PATCH] remove key from config when resetting to default/global --- web/src/components/config-form/sections/BaseSection.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx index b62914914..10415468d 100644 --- a/web/src/components/config-form/sections/BaseSection.tsx +++ b/web/src/components/config-form/sections/BaseSection.tsx @@ -70,7 +70,7 @@ export interface SectionConfig { sectionDocs?: string; /** Per-field documentation links */ fieldDocs?: Record; - /** Fields that require restart when modified (empty means all fields) */ + /** Fields that require restart when modified (empty means none; undefined uses default) */ restartRequired?: string[]; /** Whether to enable live validation */ liveValidate?: boolean; @@ -470,7 +470,7 @@ export function ConfigSection({ } if (sectionConfig.restartRequired.length === 0) { - return true; + return false; } if (!overrides || typeof overrides !== "object") { @@ -606,7 +606,7 @@ export function ConfigSection({ ? `cameras.${cameraName}.${sectionPath}` : sectionPath; - const configData = level === "global" ? effectiveSchemaDefaults : ""; + const configData = ""; await axios.put("config/set", { requires_restart: requiresRestart ? 0 : 1, @@ -649,7 +649,6 @@ export function ConfigSection({ ); } }, [ - effectiveSchemaDefaults, sectionPath, level, cameraName,