diff --git a/ghost/admin/app/components/gh-members-segment-select.js b/ghost/admin/app/components/gh-members-segment-select.js index 8774308ca7..f59c70c332 100644 --- a/ghost/admin/app/components/gh-members-segment-select.js +++ b/ghost/admin/app/components/gh-members-segment-select.js @@ -97,7 +97,7 @@ export default class GhMembersSegmentSelect extends Component { if (this.feature.get('multipleProducts')) { // fetch all products w̶i̶t̶h̶ c̶o̶u̶n̶t̶s̶ // TODO: add `include: 'count.members` to query once API supports - const products = yield this.store.query('product', {limit: 'all'}); + const products = yield this.store.query('product', {limit: 'all', include: 'monthly_price,yearly_price,benefits'}); if (products.length > 0) { const productsGroup = { diff --git a/ghost/admin/app/transforms/product-benefits.js b/ghost/admin/app/transforms/product-benefits.js index 09f1c27b47..59761d8427 100644 --- a/ghost/admin/app/transforms/product-benefits.js +++ b/ghost/admin/app/transforms/product-benefits.js @@ -3,13 +3,12 @@ import Transform from '@ember-data/serializer/transform'; import {A as emberA, isArray as isEmberArray} from '@ember/array'; export default Transform.extend({ - deserialize(serialized, options) { + deserialize(serialized) { let benefitsItems, benefitsArray; benefitsArray = serialized || []; benefitsItems = benefitsArray.map((itemDetails) => { - itemDetails.isSecondary = options && options.isSecondary || false; return ProductBenefitItem.create(itemDetails); });