|
@@ -143,12 +143,13 @@ const UserGroupDetailPage: FC = () => {
|
|
|
description: userGroupData.description,
|
|
description: userGroupData.description,
|
|
|
parentId: userGroup._id,
|
|
parentId: userGroup._id,
|
|
|
});
|
|
});
|
|
|
|
|
+ mutateChildUserGroups();
|
|
|
toastSuccess(t('toaster.update_successed', { target: t('UserGroup') }));
|
|
toastSuccess(t('toaster.update_successed', { target: t('UserGroup') }));
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|
|
|
}
|
|
}
|
|
|
- }, [userGroup, t]);
|
|
|
|
|
|
|
+ }, [t, userGroup, mutateChildUserGroups]);
|
|
|
|
|
|
|
|
const showDeleteModal = useCallback(async(group: IUserGroupHasId) => {
|
|
const showDeleteModal = useCallback(async(group: IUserGroupHasId) => {
|
|
|
setSelectedUserGroup(group);
|
|
setSelectedUserGroup(group);
|