revalidate raw paths cache after config save so CameraPathWidget shows fresh credentials

This commit is contained in:
Josh Hawkins 2026-05-06 14:18:12 -05:00
parent b317f6b8ad
commit 587c1cbb34
2 changed files with 3 additions and 1 deletions

View File

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

View File

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