Skip to content

Commit

Permalink
SBERDOMA-431 removed unused piece in Contact.name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAL committed Jun 22, 2021
1 parent bcab6bc commit 3dbf1e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/condo/domains/contact/schema/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const Contact = new GQLListSchema('Contact', {
isRequired: true,
hooks: {
validateInput: ({ resolvedData, fieldPath, addFieldValidationError }) => {
if (!resolvedData.hasOwnProperty(fieldPath)) return // skip if on value
const value = resolvedData[fieldPath]
if (value === '') {
return addFieldValidationError('Name should not be a blank string')
Expand Down

0 comments on commit 3dbf1e7

Please sign in to comment.