-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
admin/create-first-user crashes with a user collection with a join field #10870
Comments
Please add a reproduction in order for us to be able to investigate. Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided. Why was this issue marked with the
|
This issue has been automatically locked. |
🚀 This is included in version v3.21.0 |
Describe the Bug
Having a user collection that contains a join field, the /admin/create-first-user UI will crash with the following error:
TypeError: Cannot read properties of undefined (reading 'slug')
at h6 (index.js:10319:11)
at react-stack-bottom-frame (react-dom-client.development.js:23610:20)
at renderWithHooks (react-dom-client.development.js:4646:22)
at updateFunctionComponent (react-dom-client.development.js:8032:19)
at beginWork (react-dom-client.development.js:9689:18)
at runWithFiberInDEV (react-dom-client.development.js:544:16)
at performUnitOfWork (react-dom-client.development.js:15064:22)
at workLoopSync (react-dom-client.development.js:14888:41)
at renderRootSync (react-dom-client.development.js:14868:11)
at performWorkOnRoot (react-dom-client.development.js:14394:44)
at performSyncWorkOnRoot (react-dom-client.development.js:15970:7)
at flushSyncWorkAcrossRoots_impl (react-dom-client.development.js:15830:21)
at commitRootImpl (react-dom-client.development.js:15422:7)
at commitRoot (react-dom-client.development.js:15273:11)
at Object.onUnsuspend (react-dom-client.development.js:20076:11)
Link to the code that reproduces this issue
https://gist.github.com/DanRibbens/3c3974996932ea5cec59bc4ab275f4e2
Reproduction Steps
See error
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: