diff --git a/ghost/admin/app/components/gh-members-segment-select.js b/ghost/admin/app/components/gh-members-segment-select.js index a85365cf6e..cd57be1ae1 100644 --- a/ghost/admin/app/components/gh-members-segment-select.js +++ b/ghost/admin/app/components/gh-members-segment-select.js @@ -59,15 +59,19 @@ export default class GhMembersSegmentSelect extends Component { @task *fetchOptionsTask() { - const options = yield [{ - name: 'Free members', - segment: 'status:free', - class: 'segment-status-free' - }, { - name: 'Paid members', - segment: 'status:-free', // paid & comped - class: 'segment-status-paid' - }]; + const options = yield []; + + if (!this.args.hideDefaultSegments) { + options.push({ + name: 'Free members', + segment: 'status:free', + class: 'segment-status-free' + }, { + name: 'Paid members', + segment: 'status:-free', // paid & comped + class: 'segment-status-paid' + }); + } // fetch all labels w̶i̶t̶h̶ c̶o̶u̶n̶t̶s̶ // TODO: add `include: 'count.members` to query once API is fixed