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

3+ blocks in array breaks code #338

Closed
se6a opened this issue Oct 11, 2021 · 2 comments
Closed

3+ blocks in array breaks code #338

se6a opened this issue Oct 11, 2021 · 2 comments

Comments

@se6a
Copy link

se6a commented Oct 11, 2021

Bug Report

Hi there

When adding a third item to an array field, I get following error in the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'ignoreWhileFlattening')
at fieldReducer.js:16

Occurring if
-Array contains only blocks
-Array contains only nested arrays
-Array contains a block and a nested array (or more)

Not occurring if
-Array contains block(s) and a text field
-Array contains nested array(s) and a text field

You can check here:
[email protected]:se6a/payload-blocks-in-array.git

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

  1. Define new collection type x
  2. Define a field y of type array for collection x
  3. Define a nested array for field y
  4. create new collection x in the admin panel
  5. add 3 items to the array

Detailed Description

@se6a se6a added the bug label Oct 11, 2021
@jmikrut
Copy link
Member

jmikrut commented Oct 15, 2021

Hey @se6a — thank you for the report! We can slot this into our workload coming up shortly.

Copy link
Contributor

github-actions bot commented Sep 8, 2024

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants