Merge branch 'fixes-291' into 'develop'
fix error when updating profile See merge request pleroma/pleroma-fe!2156
This commit is contained in:
commit
aa7d5c0efd
1 changed files with 2 additions and 1 deletions
|
|
@ -226,7 +226,8 @@ const updateProfile = ({ credentials, params }) => {
|
|||
})
|
||||
} else {
|
||||
if (typeof params[name] === 'object') {
|
||||
console.warning('Object detected in updateProfile API call. This will not work, use updateProfileJSON instead.')
|
||||
console.warn('Object detected in updateProfile API call. This will not work, use updateProfileJSON instead.')
|
||||
console.warn('Object:\n' + JSON.stringify(params[name], null, 2))
|
||||
}
|
||||
formData.append(name, params[name]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue