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

"Uncaught TypeError" when adding field to new schema #5

Open
joshiefishbein opened this issue Sep 22, 2018 · 0 comments
Open

"Uncaught TypeError" when adding field to new schema #5

joshiefishbein opened this issue Sep 22, 2018 · 0 comments

Comments

@joshiefishbein
Copy link
Contributor

What I expected to happen

I want to create a new field in a new schema on a new content model (Millions > Block: Community Registration > Field: Community Functions)

What happened instead

I stepped through creating and publishing a new content model with 3 fields:

  • Text:title
  • Fragment:communityFunctions
  • Media:images

I then went to create an entry for this content model and was able to add a title and images, but upon stepping through adding schema I encountered this error. I can click "Setup Schema" and receive the expected result, but upon clicking "Add Field" the first time nothing happens to the UI. I open the console to find the error below:

Uncaught TypeError: Cannot read property 'pushObject' of undefined
    at r.addSchemaField (contentful-fragment-42ef4b44ac540fbd1a92dcd273a68b42.js:58)
    at r.addEmptySchemaField (contentful-fragment-42ef4b44ac540fbd1a92dcd273a68b42.js:13)
    at r.send (vendor-41efc319637f06f350e3043c1913afe6.js:3090)

screen shot 2018-09-21 at 10 07 52 pm

I can reproduce this and see the error only occurring when I try to add the first field.

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

No branches or pull requests

1 participant