optimizes usePayloadAPI

This commit is contained in:
James
2020-06-05 17:30:00 -04:00
parent 26e3f73c08
commit 68d3ff4789
2 changed files with 7 additions and 7 deletions

View File

@@ -133,7 +133,7 @@ const optionsToValidatorMap = {
return true;
},
select: (value) => {
if (value) return true;
if (value && value.length > 0) return true;
return 'This field is required.';
},
flexible: async (value, options) => {