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:
parent
3567ae6764
commit
839b1e1b43
1 changed files with 5 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue