{"action":"opened","issue":{"url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/323","labels_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/323/comments","events_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/323/events","html_url":"https://github.com/getgrav/grav-plugin-admin/issues/323","id":120224569,"number":323,"title":"List type in YAML Blueprints saves with and extra empty set when using Normal mode","user":{"login":"benblee","id":7084778,"avatar_url":"https://avatars.githubusercontent.com/u/7084778?v=3","gravatar_id":"","url":"https://api.github.com/users/benblee","html_url":"https://github.com/benblee","followers_url":"https://api.github.com/users/benblee/followers","following_url":"https://api.github.com/users/benblee/following{/other_user}","gists_url":"https://api.github.com/users/benblee/gists{/gist_id}","starred_url":"https://api.github.com/users/benblee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benblee/subscriptions","organizations_url":"https://api.github.com/users/benblee/orgs","repos_url":"https://api.github.com/users/benblee/repos","events_url":"https://api.github.com/users/benblee/events{/privacy}","received_events_url":"https://api.github.com/users/benblee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T17:16:44Z","updated_at":"2015-12-03T17:16:44Z","closed_at":null,"body":"*Version: Admin Panel  v1.0.0-rc.7*\r\n\r\nIn the Admin area editing a modular page, if there is a list item in the blueprints, it’s adding an empty value on saving. So the following is what you could enter just in the .md file and it works fine:\r\n\r\n```\r\ntitle: Gallery\r\nstyles: center-title\r\ngallery:\r\n    -\r\n        image: arches.jpg\r\n        title: 'Arches National Park'\r\n        description: 'Summer 2015'\r\n    -\r\n        image: arches.jpg\r\n        title: 'Arches National Park'\r\n        description: 'Summer 2015’\r\n```\r\n\r\nBut if you use the admin area and **Normal** mode, it will save it with an extra empty set:\r\n\r\n```\r\ntitle: Gallery\r\nstyles: center-title\r\ngallery:\r\n    0:\r\n        image: arches.jpg\r\n        title: 'Arches National Park'\r\n        description: 'Summer 2015'\r\n    1:\r\n        image: arches.jpg\r\n        title: 'Arches National Park'\r\n        description: 'Summer 2015'\r\n    '*':\r\n        image: ''\r\n        title: ''\r\n        description: ‘’\r\n```\r\n\r\nEditing and Saving in **Expert** mode works fine and as expected. This issue only shows in **Normal** mode.\r\n\r\nThis is the YAML for this example's blueprint:\r\n\r\n```\r\ntitle: Gallery\r\n@extends: default\r\n\r\nform:\r\n  fields:\r\n    tabs:\r\n      fields:\r\n        advanced:\r\n          fields:\r\n            columns:\r\n              fields:\r\n                column1:\r\n                  fields:\r\n                    name:\r\n                      default: modular/gallery\r\n                      @data-options: '\\Grav\\Common\\Page\\Pages::modularTypes'\r\n            overrides:\r\n              fields:\r\n                header.template:\r\n                  default: modular/gallery\r\n                  @data-options: '\\Grav\\Common\\Page\\Pages::modularTypes'\r\n        styles:\r\n          type: tab\r\n          title: Row Style\r\n          fields:\r\n            header.styles:\r\n              type: textarea\r\n              label: CSS Classes\r\n\r\n        gallery:\r\n          type: tab\r\n          title: Images\r\n          fields:\r\n            header.gallery:\r\n              name: images\r\n              type: list\r\n              label: Images\r\n\r\n              fields:\r\n                .image:\r\n                  type: text\r\n                  label: Image\r\n                .title:\r\n                  type: text\r\n                  label: Title\r\n                .description:\r\n                  type: text\r\n                  label: Description\r\n```"}}