From d1f141148a03383d70f64a1acdfd477f63ce0129 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 16 Sep 2024 14:50:43 +0200 Subject: [PATCH] refresh realm after being changed (#32954) fixes: #32834 Signed-off-by: Erik Jan de Wit --- js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx b/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx index 35acf49a66..8e3bdd2238 100644 --- a/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx +++ b/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx @@ -49,7 +49,7 @@ export const EventsTab = ({ realm }: EventsTabProps) => { const [addEventType, setAddEventType] = useState(false); const { addAlert, addError } = useAlerts(); - const { realm: realmName } = useRealm(); + const { realm: realmName, refresh: refreshRealm } = useRealm(); const setupForm = (eventConfig?: EventsConfigForm) => { setEvents(eventConfig); @@ -111,6 +111,7 @@ export const EventsTab = ({ realm }: EventsTabProps) => { }, ); } + refreshRealm(); try { await adminClient.realms.updateConfigEvents(