Skip to content

List Widget with single child object displays "List[map]........" string in CMS UI #1275

@ghost

Description

- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
List widget with a single object as its array element outputs "List[map]........" string in the ui like shown here https://nupic.co/image/6T638
- If the current behavior is a bug, please provide the steps to reproduce.
Please use this configuration to reproduce the bug

- name: "footer"
  label: "Footer Links"
  file: "_data/footer.yml"
  fields: 
   - name: "footer"
     label: "Footer Links"
     widget: list
     disableAdd: true
     fields:
      - name: "links-col-1"
        label: "Footer Links Column 1"
        widget: list
        fields:
         - {label: "Title", name: "name", widget: "string" }
         - {label: "URL", name: "href", widget: "string" }  
      - name: "links-col-2"
        label: "Footer Links Column 2"
        widget: list
        fields:
         - {label: "Title", name: "name", widget: "string" }
         - {label: "URL", name: "href", widget: "string" }      

Here is the data structure that gets created from the above code

{ "footer": [ { "links-col-1": [ { "href": "/activeico.html", "name": "Active ICO" }, { "href": "/upcomingico.html", "name": "Upcoming ICO" }, { "href": "/endedico.html", "name": "Ended ICO" } ], "links-col-2": [ { "href": "/whitelist.html", "name": "Whitelist" }, { "href": "/preico.html", "name": "Pre ICO" }, { "href": "Advertising", "name": "/publishico.html" } ] } ] }
- What is the expected behavior?

- Please mention your versions where applicable.

Netlify CMS version: 1.5
Browser version:

Node.JS version:
Operating System:

- Please link or paste your config.yml below if applicable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions