fix comment editing validation

This commit is contained in:
keyan 2022-08-26 21:57:41 -05:00
parent 863e717c05
commit ec2ac6e698
1 changed files with 1 additions and 1 deletions

View File

@ -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' }) 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') throw new UserInputError('title too long')
} }