kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
EditProfile: prevent crash with account.source is not available
rodzic
9776cc9623
commit
a38bc912c7
|
@ -124,7 +124,7 @@ const accountToCredentials = (account: Account): AccountCredentials => {
|
|||
discoverable: account.discoverable,
|
||||
bot: account.bot,
|
||||
display_name: account.display_name,
|
||||
note: account.source.get('note'),
|
||||
note: account.source.get('note', ''),
|
||||
locked: account.locked,
|
||||
fields_attributes: [...account.source.get<Iterable<AccountCredentialsField>>('fields', ImmutableList()).toJS()],
|
||||
stranger_notifications: account.getIn(['pleroma', 'notification_settings', 'block_from_strangers']) === true,
|
||||
|
|
Ładowanie…
Reference in New Issue