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 {
|
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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user