From 587c1cbb3438452527b9f6341023b3736113802d Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 6 May 2026 14:18:12 -0500 Subject: [PATCH] revalidate raw paths cache after config save so CameraPathWidget shows fresh credentials --- web/src/components/config-form/sections/BaseSection.tsx | 3 ++- web/src/pages/Settings.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx index 1f7f5b324..63fdc1e4c 100644 --- a/web/src/components/config-form/sections/BaseSection.tsx +++ b/web/src/components/config-form/sections/BaseSection.tsx @@ -9,7 +9,7 @@ import { useRef, useContext, } from "react"; -import useSWR from "swr"; +import useSWR, { mutate as swrMutate } from "swr"; import axios from "axios"; import { toast } from "sonner"; import { useTranslation } from "react-i18next"; @@ -754,6 +754,7 @@ export function ConfigSection({ } await refreshConfig(); + swrMutate("config/raw_paths"); setPendingData(null); onSave?.(); } catch (error) { diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx index a4b7f2245..42511e7a9 100644 --- a/web/src/pages/Settings.tsx +++ b/web/src/pages/Settings.tsx @@ -885,6 +885,7 @@ export default function Settings() { // Refresh config from server once await mutate("config"); + mutate("config/raw_paths"); // Clear hasChanges in sidebar for all successfully saved sections if (savedKeys.length > 0) {