Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: list action populate issue #1604

Merged

Conversation

AstaDK
Copy link
Contributor

@AstaDK AstaDK commented Jan 15, 2024

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
Copy link
Contributor

dziraf commented Jan 17, 2024

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.

@dziraf dziraf merged commit 7bea2b2 into SoftwareBrothers:master Jan 17, 2024
4 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 17, 2024
## [7.5.3](v7.5.2...v7.5.3) (2024-01-17)

### Bug Fixes

* fix list action populate issue ([#1604](#1604) ([7bea2b2](7bea2b2))
Copy link

🎉 This PR is included in version 7.5.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants