Fixed default access setting showing incorrect tiers selection

closes https://github.com/TryGhost/Team/issues/1032

- fixes the selected default access value for specific tier not shown correctly on admin
- the value was correctly saved and fetched, but the value shown got overridden by default product selection and only the first product was shown as selected value
This commit is contained in:
Rishabh 2021-09-13 15:48:12 +05:30
parent 9b4cd259b2
commit be0942d8e2

View File

@ -115,7 +115,7 @@ export default class GhMembersSegmentSelect extends Component {
});
options.push(productsGroup);
if (this.args.selectDefaultProduct) {
if (this.args.selectDefaultProduct && !this.args.segment) {
this.args.onChange?.(productsGroup.options[0].segment);
}
}