Closed fauh45 closed 2 years ago
Yep, you are right, looking into it now! The problem is that react-admin was sending sometimes strings and sometimes numbers, will check if that's still the case, hopefully we could preserve whatever the original type is
Seems still the case, if the guys don't fix soonish, I will use your suggestion https://github.com/marmelab/react-admin/issues/7728
Seems still the case, if the guys don't fix soonish, I will use your suggestion marmelab/react-admin#7728
Huh, so it's just React Admin being weird now eh? Well I guess for now I'll just be running the regex version of mine, as it seemed like it works just fine. Thanks for the quick response!
ra-data-simple-prisma@0.3.3
A lot of the methods does this kind of operation to the body params id,
This will result in
NaN
when the id being sent is type of string. Making it doesn't support string datatypes of id. And a simple change could be done like this,Edit : Add RegEx test if a string is a number