fix: Fix bug where old settings would linger on page until browser refresh

This commit is contained in:
SleeplessOne1917 2023-09-28 06:12:15 -04:00
parent 951c8afebc
commit 1803908735

View file

@ -1376,6 +1376,17 @@ export class Settings extends Component<any, SettingsState> {
res: saveRes.data, res: saveRes.data,
showToast: false, showToast: false,
}); });
const siteRes = await HttpService.client.getSite();
if (siteRes.state === "success") {
i.setState({
siteRes: siteRes.data,
});
UserService.Instance.myUserInfo = siteRes.data.my_user;
}
toast(I18NextService.i18n.t("saved")); toast(I18NextService.i18n.t("saved"));
window.scrollTo(0, 0); window.scrollTo(0, 0);
} }