mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
🐛 Fixed archived tiers appearing in Portal Links UI (#15351)
closes #15293 - added additional active:true filter to tier fetching query to filter only get paid and active tiers.
This commit is contained in:
parent
db6fb2d6d0
commit
2ffd76b994
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user