fix(fe2): allow empty description for edit view (#5677)
This commit is contained in:
committed by
GitHub
parent
fea41585a4
commit
4cf15a797c
@@ -125,7 +125,7 @@ const onSubmit = handleSubmit(async (values) => {
|
||||
: undefined
|
||||
const description =
|
||||
values.description?.trim() !== (props.view.description || undefined)
|
||||
? values.description?.trim() || null
|
||||
? values.description?.trim() || ''
|
||||
: undefined
|
||||
const visibility =
|
||||
values.visibility !== props.view.visibility ? values.visibility : undefined
|
||||
|
||||
Reference in New Issue
Block a user