diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-08 23:59:18 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-08 23:59:18 +0100 |
commit | dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42 (patch) | |
tree | a5f29e34d8cf11d3664b0e1008ae19659e28eaf3 | |
parent | Tags are displayed in one single line. (diff) | |
download | newspipe-dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42.tar.gz newspipe-dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42.tar.bz2 newspipe-dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42.zip |
inverse parameters of reduce
-rw-r--r-- | src/web/js/components/RightPanel.react.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js index c549e416..06f871c0 100644 --- a/src/web/js/components/RightPanel.react.js +++ b/src/web/js/components/RightPanel.react.js @@ -78,8 +78,8 @@ var PanelMixin = { items.push(<dd key={key}><Glyphicon glyph="unchecked" /></dd>); } } else if (field.type == 'list') { - items.push(<dd key={key}>{this.props.obj[field.key].reduce(function(tag, concatenatedTag) { - return tag.concat(", ", concatenatedTag) + items.push(<dd key={key}>{this.props.obj[field.key].reduce(function(concatenatedTag, currentTag) { + return currentTag.concat(", ", concatenatedTag) })}</dd>) } else if (field.type == 'link') { items.push(<dd key={key}> |