🐛 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:
Hakim Razalan 2022-09-06 17:25:19 +08:00 committed by GitHub
parent db6fb2d6d0
commit 2ffd76b994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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', {