SoftwareBrothers / adminjs

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

fix: list action populate issue #1604

Closed AstaDK closed 6 months ago

AstaDK commented 6 months ago

Explain issue:

I'm facing an issue with a resource list. The error message reads: "TypeError: Cannot read properties of undefined (reading 'find')." I have attached an image for more details.

I suspect that the issue is due to a removed relationship.

"@adminjs/express": "^6.0.1", "@adminjs/mongoose": "^4.0.0", "adminjs": "^7.5.2",

image

dziraf commented 6 months ago

Hi @AstaDK, I'll approve and merge the PR since it should fix the UI error. However, I think you might have a configuration issue there since populated.recordActions should actually be defined and default to an empty array if the reference is configured correctly.

github-actions[bot] commented 6 months ago

:tada: This PR is included in version 7.5.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: