Preload profile editor form with source data fields, fixes #60

stable/1.0.x
Alex Gleason 2020-05-17 12:12:56 -05:00
rodzic b800e8823a
commit ac6d25f5c7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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 => {