SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.15k stars 659 forks source link

[Bug]: Negative number in Record ID #1541

Open maphstay opened 1 year ago

maphstay commented 1 year ago

What happened?

In my listed records with list actions there is a record with negative number like -1. image

when I try to open it by show action or edit action I received thew following error: 'You have to pass a valid recordId to the recordAction'. image

Bug prevalence

always that we try to open a record with negative id

AdminJS dependencies version

"@adminjs/express": "^6.0.0", "@adminjs/typeorm": "^5.0.0", "adminjs": "^7.0.6",

What browsers do you see the problem on?

Firefox

Relevant log output

No response

Relevant code that's giving you issues

No response