From 2ffd76b99484870938066646f0047c2d1532abb4 Mon Sep 17 00:00:00 2001 From: Hakim Razalan Date: Tue, 6 Sep 2022 17:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20archived=20tiers=20appea?= =?UTF-8?q?ring=20in=20Portal=20Links=20UI=20(#15351)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #15293 - added additional active:true filter to tier fetching query to filter only get paid and active tiers. --- ghost/admin/app/components/gh-portal-links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-portal-links.js b/ghost/admin/app/components/gh-portal-links.js index d67a937fc0..457f3766d1 100644 --- a/ghost/admin/app/components/gh-portal-links.js +++ b/ghost/admin/app/components/gh-portal-links.js @@ -68,7 +68,7 @@ export default class GhPortalLinks extends Component { } @task(function* () { - const tiers = yield this.store.query('tier', {filter: 'type:paid', include: 'monthly_price,yearly_price'}) || []; + const tiers = yield this.store.query('tier', {filter: 'type:paid+active:true', include: 'monthly_price,yearly_price'}) || []; this.set('tiers', tiers); if (tiers.length > 0) { this.set('selectedTier', {