Represent arrays nicer in default mor info

This commit is contained in:
Paulus Schoutsen 2016-01-31 13:38:24 -08:00
parent 7373733c41
commit 8050e08615

View File

@ -20,6 +20,8 @@ export default new Polymer({
}, },
getAttributeValue(stateObj, attribute) { getAttributeValue(stateObj, attribute) {
return stateObj.attributes[attribute]; const value = stateObj.attributes[attribute];
return Array.isArray(value) ? value.join(', ') : value;
}, },
}); });