aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 23:59:18 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 23:59:18 +0100
commitdcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42 (patch)
treea5f29e34d8cf11d3664b0e1008ae19659e28eaf3
parentTags are displayed in one single line. (diff)
downloadnewspipe-dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42.tar.gz
newspipe-dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42.tar.bz2
newspipe-dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42.zip
inverse parameters of reduce
-rw-r--r--src/web/js/components/RightPanel.react.js4
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}>
bgstack15