fix: reload nextjs api route settings on saves

This commit is contained in:
diced
2025-02-20 11:48:57 -08:00
parent 60e9b52100
commit 1801287deb
3 changed files with 27 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ export function settingsOnSubmit(router: NextRouter, form: ReturnType<typeof use
});
await fetch('/reload');
await fetch('/api/reload');
mutate('/api/server/settings', data);
router.replace(router.asPath, undefined, { scroll: false });
}