0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Hid archived tiers from offer creation page

refs https://github.com/TryGhost/Team/issues/1430
This commit is contained in:
Djordje Vlaisavljevic 2022-03-24 10:26:44 +01:00
parent d1530c8285
commit 0332629a10

View file

@ -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;
});