1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

PR Feeback: Simplify statements

This commit is contained in:
Tim Daubenschütz 2015-09-17 13:52:51 +02:00
parent 32f38428f1
commit 297d30f21f

View File

@ -39,13 +39,13 @@ let PieceListFilterDisplay = React.createClass({
return { return {
key: item.key, key: item.key,
label: item.label, label: item.label,
value: filterBy[item.key] ? filterBy[item.key] : false value: filterBy[item.key] || false
}; };
} else { } else {
return { return {
key: item, key: item,
label: item.split('acl_')[1].replace(/_/g, ' '), label: item.split('acl_')[1].replace(/_/g, ' '),
value: filterBy[item] ? filterBy[item] : false value: filterBy[item] || false
}; };
} }
}) })