refresh realm after being changed (#32954)
fixes: #32834 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
5e65bdde16
commit
d1f141148a
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue