fix comment editing validation
This commit is contained in:
parent
863e717c05
commit
ec2ac6e698
|
@ -877,7 +877,7 @@ export const updateItem = async (parent, { id, data: { title, url, text, boost,
|
|||
throw new UserInputError(`boost must be at least ${BOOST_MIN}`, { argumentName: 'boost' })
|
||||
}
|
||||
|
||||
if (!parentId && title.length > MAX_TITLE_LENGTH) {
|
||||
if (!old.parentId && title.length > MAX_TITLE_LENGTH) {
|
||||
throw new UserInputError('title too long')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue