Open
Description
I created an Organism that includes an array of a single molecule.
http://mayflower.digital.mass.gov/?p=organisms-contact-list
I then created a variant of that Pattern using the contact-list~single-item.json method to show how the component should be rendered if there is only one molecule in the array.
http://mayflower.digital.mass.gov/?p=organisms-contact-list-single-item
After upgrading our site to the Drupal Pattern Lab (massgov/mayflower#488), the Variant began showing two items instead of one. The first item was being displayed correctly, but the second item, which shouldn't have been there, was coming from the base json file.
I'm not sure why this is happening, but it seems like a bug.
{
"contactList": {
"compHeading": {
"title": "Contacts",
"sub": "",
"color": "",
"id": "contacts",
"centered": ""
},
"contacts":[{
"accordion": false,
"isExpanded": false,
"subTitle": {
"href":"",
"text": "Department of Conservation and Recreation"
},
"groups": [{
"icon": "@atoms/05-icons/svg-phone.twig",
"name": "Phone",
"items": [{
"type": "phone",
"property": "",
"label":"Main:",
"link": {
"href": "+14134994262",
"text": "(413) 499-4262",
"info": "",
"property": ""
},
"details":"This line is open from 9:00 a.m. - 5:00 p.m., M-F"
},{
"type": "phone",
"property": "",
"label":"Toll Free:",
"link":{
"href": "+18004324321",
"text": "(800) 432-4321",
"info": "",
"property": ""
},
"details":"This line is open from 9:00 a.m. - 5:00 p.m., M-F"
},{
"type": "phone",
"property": "",
"label":"TTY:",
"link": {
"href":"+16175557777",
"text": "(617) 555-7777",
"info": "",
"property": ""
},
"details":"For those who need accessible services"
},{
"type": "phone",
"property": "",
"label":"Voice Relay:",
"link":{
"href":"16175555255",
"text": "(617) 555-5255",
"info": "",
"property": ""
},
"details":""
}]
},{
"icon": "@atoms/05-icons/svg-laptop.twig",
"name": "Online",
"hidden": "",
"items": [{
"type": "email",
"property": "",
"label":"Email:",
"link": {
"href":"[email protected]",
"text": "[email protected]",
"info": "",
"property": ""
},
"details":""
},{
"type": "online",
"property": "",
"label":"Web:",
"link": {
"href":"#",
"text": "Contact Form",
"info": "",
"property": ""
},
"details":""
}]
},{
"icon": "@atoms/05-icons/svg-fax-icon.twig",
"name": "Fax",
"items": [{
"type": "fax",
"property": "",
"label":"Main:",
"link": {
"href":"+14134994262",
"text": "(413) 499-4262",
"info": "",
"property": ""
},
"details":"Please allow 24 hours for a response"
}]
},{
"icon": "@atoms/05-icons/svg-marker.twig",
"name": "Address",
"items": [{
"type": "address",
"property": "",
"label": "",
"address": "555 Park Drive\nBoston, MA 02231",
"link": {
"href": "https://www.google.com/maps/place/555+Park+Dr,+Boston,+MA+02215",
"text": "directions",
"info": "",
"property": ""
},
"details": ""
}]
}]
}]
}
}
Metadata
Metadata
Assignees
Labels
No labels