Skip to content

Commit fd982d9

Browse files
Fix: reset button updates both localStorage and React context
1 parent 13ea00f commit fd982d9

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

tools/server/public/index.html.gz

-2 Bytes
Binary file not shown.

tools/server/webui/src/components/SettingDialog.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ export default function SettingDialog({
277277
try {
278278
const cfg = await getServerDefaultConfig(config.apiKey);
279279
StorageUtils.setConfig(cfg);
280+
saveConfig(cfg);
280281
setLocalConfig({ ...cfg });
281282
console.info('[Config] Reset from server config');
282283
} catch (err) {

0 commit comments

Comments
 (0)