adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

[Bug]: isRequired with availableValues didn't work.

Open Yurichz opened this issue 2 years ago • 0 comments

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 image code: touchdownAttempts: { type: 'number', isRequired: true, },

But if i try to add to him availableValues adminjs just pass him: image 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

Yurichz avatar May 08 '23 10:05 Yurichz