0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Fixed tiers resetting in Ember when created in AdminX (#18554)

refs https://github.com/TryGhost/Product/issues/3832

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 3fbb5c5</samp>

Reload members data when tiers settings change. This ensures that the UI
shows the correct counts and labels of the tiers after updating them in
the settings component.
This commit is contained in:
Jono M 2023-10-10 15:37:17 +01:00 committed by GitHub
parent 3567ae6764
commit 839b1e1b43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -374,6 +374,11 @@ export default class AdminXSettings extends Component {
}
run(() => this.store.unloadAll(type));
if (dataType === 'TiersResponseType') {
// membersUtils has local state which needs to be updated
this.membersUtils.reload();
}
};
onDelete = (dataType, id) => {