Update to match is_openly_joinable API

pull/21833/head
Luke Barnard 2018-04-06 14:58:10 +01:00
parent 929718b032
commit 76144b964a
1 changed files with 4 additions and 1 deletions

View File

@ -550,7 +550,10 @@ export default React.createClass({
editing: true,
profileForm: Object.assign({}, this.state.summary.profile),
joinableForm: {
policyType: this.state.summary.profile.join_policy,
policyType:
this.state.summary.profile.is_openly_joinable ?
GROUP_JOINPOLICY_OPEN :
GROUP_JOINPOLICY_INVITE,
},
});
dis.dispatch({