From dcf3bf4f6e87bdc6fa43832ac54cb4dcdc342a42 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 8 Nov 2016 23:59:18 +0100 Subject: inverse parameters of reduce --- src/web/js/components/RightPanel.react.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(
); } } else if (field.type == 'list') { - items.push(
{this.props.obj[field.key].reduce(function(tag, concatenatedTag) { - return tag.concat(", ", concatenatedTag) + items.push(
{this.props.obj[field.key].reduce(function(concatenatedTag, currentTag) { + return currentTag.concat(", ", concatenatedTag) })}
) } else if (field.type == 'link') { items.push(
-- cgit