0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

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 0d89d42ad2
commit 1461280167

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);
}
}