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

bug: list fields do not default to empty list #782

Closed
r1b opened this issue Nov 7, 2017 · 2 comments
Closed

bug: list fields do not default to empty list #782

r1b opened this issue Nov 7, 2017 · 2 comments

Comments

@r1b
Copy link

r1b commented Nov 7, 2017

- Do you want to request a feature or report a bug?

Report a bug

- What is the current behavior?

List fields do not default to an empty array

- If the current behavior is a bug, please provide the steps to reproduce.

  1. Create a collection with a list field that has no default value
  2. Attempts to save the collection without populating the list field with an empty object will fail with a crash.
  3. Adding a default: [] entry to the list field fixes the issue

- What is the expected behavior?

List fields should always default to an empty array without user intervention.

- Please mention your CMS, node.js, and operating system version.

CMS version: v0.5.0
Node.js version: v8.6.9
OS version: Varies, Ubuntu LTS or OS X

@erquhart
Copy link
Contributor

erquhart commented Dec 9, 2017

Fixed in 1.0.

@erquhart erquhart closed this as completed Dec 9, 2017
@r1b
Copy link
Author

r1b commented Dec 9, 2017

Thanks!

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

No branches or pull requests

2 participants