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:
parent
32f38428f1
commit
297d30f21f
@ -39,13 +39,13 @@ let PieceListFilterDisplay = React.createClass({
|
||||
return {
|
||||
key: item.key,
|
||||
label: item.label,
|
||||
value: filterBy[item.key] ? filterBy[item.key] : false
|
||||
value: filterBy[item.key] || false
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
key: item,
|
||||
label: item.split('acl_')[1].replace(/_/g, ' '),
|
||||
value: filterBy[item] ? filterBy[item] : false
|
||||
value: filterBy[item] || false
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user