adminjs
adminjs copied to clipboard
[Bug]: isRequired with availableValues didn't work.
Contact Details
No response
What happened?
If i try create empty record with required props, but without availableValues, adminjs throw me attention about this prop is required please fill him
code:
touchdownAttempts: {
type: 'number',
isRequired: true,
},
But if i try to add to him availableValues adminjs just pass him:
code:
touchdownAttempts: {
type: 'number',
isRequired: true,
availableValues: getAvailableValuesRange(FIRST_DOWN_ATTEMPTS.MIN, FIRST_DOWN_ATTEMPTS.MAX),
},
Bug prevalence
Any time
AdminJS dependencies version
{ "adminjs": "6.8.4", "@adminjs/design-system": "3.1.8", "@adminjs/express": "5.1.0", "@adminjs/nestjs": "5.1.0", "@adminjs/prisma": "3.0.1", }
What browsers do you see the problem on?
No response
Relevant log output
No response
Relevant code that's giving you issues
No response