From 0332629a10f3f17f56a7d8f0cd800ceb50696029 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Thu, 24 Mar 2022 10:26:44 +0100 Subject: [PATCH] Hid archived tiers from offer creation page refs https://github.com/TryGhost/Team/issues/1430 --- ghost/admin/app/controllers/offer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/controllers/offer.js b/ghost/admin/app/controllers/offer.js index 1b133d6397..ce8e73f676 100644 --- a/ghost/admin/app/controllers/offer.js +++ b/ghost/admin/app/controllers/offer.js @@ -101,7 +101,7 @@ export default class OffersController extends Controller { @task({drop: true}) *fetchProducts() { - this.products = yield this.store.query('product', {filter: 'type:paid', include: 'monthly_price,yearly_price'}); + this.products = yield this.store.query('product', {filter: 'type:paid+active:true', include: 'monthly_price,yearly_price'}); this.products = this.products.filter((d) => { return d.monthlyPrice && d.yearlyPrice; });