add support for disabling rich text formatting
This commit is contained in:
parent
cd48268c85
commit
1af5c8fd39
5 changed files with 11 additions and 3 deletions
|
@ -136,8 +136,8 @@ const updateProfile = ({credentials, params}) => {
|
|||
const form = new FormData()
|
||||
|
||||
each(params, (value, key) => {
|
||||
/* Always include description and locked, because it might be empty or false */
|
||||
if (key === 'description' || key === 'locked' || value) {
|
||||
/* Always include description, no_rich_text and locked, because it might be empty or false */
|
||||
if (key === 'description' || key === 'locked' || key === 'no_rich_text' || value) {
|
||||
form.append(key, value)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue