Minor fixes based on lgtm.com alerts (#6819)
* Remove a couple of superfluous trailing arguments * Simplify assignment logic in a couple of places * Modify some potentially inconsistent setState calls to use the function form * Fix eslint errors
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
e6ca2974cd
Коммит
b03b9d7362
@@ -76,7 +76,9 @@ export default class SidebarRight extends React.Component {
|
||||
if (e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
this.setState({expanded: !this.state.expanded});
|
||||
this.setState((prevState) => {
|
||||
return {expanded: !prevState.expanded};
|
||||
});
|
||||
}
|
||||
|
||||
onInitializeVideoCall(userId, isCaller) {
|
||||
|
||||
Ссылка в новой задаче
Block a user