From b793697f689eab7c934e295a7aa2b2c666dda109 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> Date: Tue, 14 May 2024 09:48:59 -0400 Subject: [PATCH] Refresh admin settings on submit (#2456) --- package.json | 2 +- src/shared/components/home/admin-settings.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c8afeb6..4aad1116 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "sortpack" ] }, - "packageManager": "pnpm@9.1.0+sha512.67f5879916a9293e5cf059c23853d571beaf4f753c707f40cb22bed5fb1578c6aad3b6c4107ccb3ba0b35be003eb621a16471ac836c87beb53f9d54bb4612724", + "packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195", "engineStrict": true, "importSort": { ".js, .jsx, .ts, .tsx": { diff --git a/src/shared/components/home/admin-settings.tsx b/src/shared/components/home/admin-settings.tsx index 6fe62272..9ab0ccc4 100644 --- a/src/shared/components/home/admin-settings.tsx +++ b/src/shared/components/home/admin-settings.tsx @@ -421,6 +421,9 @@ export class AdminSettings extends Component< return s; }); toast(I18NextService.i18n.t("site_saved")); + + // You need to reload the page, to properly update the siteRes everywhere + setTimeout(() => location.reload(), 500); } this.setState({ loading: false });