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
Can't load model within content type builder - cannot read property attributes of undefined #1749
Comments
Funny. "pageModuleType": {
"model": "pagemoduletype"
} |
Hello @MartinMuzatko I think you issue is related to this issue #1139 |
@lauriejim wouldn't it just be best to make sure model callbacks are always lowercase as to not mess with the field case? something like |
I wouldn't mind if strapi would force me into a specific schema, since the default fields |
I agree @MartinMuzatko there was some discussion on this a while back (for the life of me can't find the issue I created 😆 ) Everyone has different case types they normally use, I think honestly Strapi shouldn't limit users to a particular type and just handle the creation and management as far as needed, actual display values shouldn't be breaking thing (Both in the AdminUI and in the Rest/GraphQL response) If I have a |
My original issue I outlined was the values displayed in the left menu, right now it can be quite ugly especially when it uses Plural values on things that should not be Plural. |
I understand your need, I link this issue to this global models and attributes format issue - #1736 |
Informations
What is the current behavior?
When loading the content type builder for a model, I get the following error:
Then the page prompts me to create new fields, when the overview page says it already has 4 fields.
Steps to reproduce the problem
Create a model with the following attributes:
If required, please let me know if the other models are also required to debug this.
What is the expected behavior?
load the fields for editing
Suggested solutions
This is the affected line of the function:
getModel
ofplugins/content-type-builder/services/ContentTypeBuilder.js
It looks like you will always expect to have a
params.target
and that model has one.To me, this looks like the model - when created, was misconfigured.
The text was updated successfully, but these errors were encountered: