add support for disabling rich text formatting

This commit is contained in:
William Pitcock 2018-09-22 03:54:05 +00:00
parent cd48268c85
commit 1af5c8fd39
5 changed files with 11 additions and 3 deletions

View file

@ -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)
}
})