From be0942d8e2cf307d4d52c0464fa47f3b5a99eebf Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 13 Sep 2021 15:48:12 +0530 Subject: [PATCH] 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 --- ghost/admin/app/components/gh-members-segment-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-members-segment-select.js b/ghost/admin/app/components/gh-members-segment-select.js index 8991597078..8774308ca7 100644 --- a/ghost/admin/app/components/gh-members-segment-select.js +++ b/ghost/admin/app/components/gh-members-segment-select.js @@ -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); } }