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) {