Clarify level
variable name
This commit is contained in:
parent
fa88185dee
commit
b0f59007f3
1 changed files with 6 additions and 2 deletions
|
@ -73,8 +73,12 @@ module.exports = React.createClass({
|
|||
_initStateFromProps: function(newProps) {
|
||||
// This needs to be done now because levelRoleMap has translated strings
|
||||
const levelRoleMap = Roles.levelRoleMap(newProps.usersDefault);
|
||||
const options = Object.keys(levelRoleMap).filter((l) => {
|
||||
return l === undefined || l <= newProps.maxValue || l == newProps.value;
|
||||
const options = Object.keys(levelRoleMap).filter(level => {
|
||||
return (
|
||||
level === undefined ||
|
||||
level <= newProps.maxValue ||
|
||||
level == newProps.value
|
||||
);
|
||||
});
|
||||
|
||||
const isCustom = levelRoleMap[newProps.value] === undefined;
|
||||
|
|
Loading…
Reference in a new issue