From 839b1e1b430621766f514fec2728ae6809efecdc Mon Sep 17 00:00:00 2001 From: Jono M Date: Tue, 10 Oct 2023 15:37:17 +0100 Subject: [PATCH] Fixed tiers resetting in Ember when created in AdminX (#18554) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/Product/issues/3832 --- ### 🤖 Generated by Copilot at 3fbb5c5 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. --- ghost/admin/app/components/admin-x/settings.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghost/admin/app/components/admin-x/settings.js b/ghost/admin/app/components/admin-x/settings.js index 73d7188154..b8c44149bc 100644 --- a/ghost/admin/app/components/admin-x/settings.js +++ b/ghost/admin/app/components/admin-x/settings.js @@ -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) => {