diff options
Diffstat (limited to 'webapp/components/webrtc')
-rw-r--r-- | webapp/components/webrtc/components/webrtc_sidebar.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/webrtc/components/webrtc_sidebar.jsx b/webapp/components/webrtc/components/webrtc_sidebar.jsx index c207ab489..82ac2d98a 100644 --- a/webapp/components/webrtc/components/webrtc_sidebar.jsx +++ b/webapp/components/webrtc/components/webrtc_sidebar.jsx @@ -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) { |