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

Unable to add items to the inner list of a nested list (JS error) #1353

Closed
joncarlson opened this issue Jul 10, 2019 · 1 comment
Closed

Comments

@joncarlson
Copy link

Description

A JS error is thrown when attempting to add an item to a new inner list of a nested list.

Steps to Reproduce

  1. Example reproducing the problem
  2. Add a new nested list item
  3. A new nested list item is created along with an empty inner list
  4. Click the add button under the empty inner list

Expected behavior

Items should be able to be added.

Actual behavior

A JS error is thrown and no items can be added.

The problem is the schema becomes:

{
  "nestedList": [
    [
      "lorem",
      "ipsum"
    ],
    null .   // problem here
  ]
}

It should be:

{
  "nestedList": [
    [
      "lorem",
      "ipsum"
    ],
    [] .   // fixed
  ]
}

Version

1.6.1

@joncarlson
Copy link
Author

Fixed in #1335

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