Skip to content

NVR with realtime local object detection for IP cameras

await config refresh before clearing pending form data (#22707)

Josh Hawkins4695e10341ba
diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx
index 96bd3efa92..cc1448703d 100644
--- a/web/src/components/config-form/sections/BaseSection.tsx
+++ b/web/src/components/config-form/sections/BaseSection.tsx
@@ -737,8 +737,8 @@ export function ConfigSection({
);
}
+ await refreshConfig();
setPendingData(null);
- refreshConfig();
onSave?.();
} catch (error) {
// Parse Pydantic validation errors from API response