I am using prisma and nest.js and have boolean values for disabled property. When using filter I can select Yes,No and clear value. After clearing value AdminJS is looking for record with disabled equal null and prisma throws an error.
Steps to reproduce:
Open Filters
Select "Yes"
Click cross to clear value
Click "Apply Changes"
Result:
url is changed to: https://localhost:8080/admin/resources/User?filters.disabled=undefined&page=1
Contact Details
@MarcinZmudka on AdminJS slack
What happened?
I am using prisma and nest.js and have boolean values for
disabled
property. When using filter I can selectYes
,No
and clear value. After clearing value AdminJS is looking for record withdisabled
equalnull
and prisma throws an error.Steps to reproduce:
Result:
https://localhost:8080/admin/resources/User?filters.disabled=undefined&page=1
Bug prevalence
always
AdminJS dependencies version
{ "dependencies": { "@adminjs/express": "^5.1.0", "@adminjs/nestjs": "^5.1.0", "@adminjs/prisma": "^3.0.1", "@nestjs/swagger": "^6.0.5", "@prisma-spectrum/reflector": "0.15.4", "@prisma/client": "4.7.1", "adminjs": "^6.8.2", "prisma": "4.7.1", "ts-node": "^10.0.0", "typescript": "^4.9.4", }
What browsers do you see the problem on?
Chrome
Relevant log output
Relevant code that's giving you issues
No response