kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Preload profile editor form with source data fields, fixes #60
rodzic
b800e8823a
commit
ac6d25f5c7
|
@ -86,7 +86,9 @@ class EditProfile extends ImmutablePureComponent {
|
|||
|
||||
componentWillMount() {
|
||||
const { account } = this.props;
|
||||
this.setState(account.toJS());
|
||||
const sourceData = account.get('source');
|
||||
const initialState = account.merge(sourceData).delete('source');
|
||||
this.setState(initialState.toJS());
|
||||
}
|
||||
|
||||
handleCheckboxChange = e => {
|
||||
|
|
Ładowanie…
Reference in New Issue