diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index 6411ec0beb..987a93e533 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -771,7 +771,8 @@ class UIRoot extends Component { pushHistoryState = (k, v) => pushHistoryState(this.props.history, k, v); setSidebar(sidebarId, otherState) { - this.setState({ sidebarId, chatPrefix: "", chatAutofoucs: false, selectedUserId: null, ...otherState }); + console.log(sidebarId, otherState); + this.setState({ sidebarId, chatPrefix: "", chatAutofoucs: false, selectedUserId: null, ...(otherState || {}) }); } toggleSidebar(sidebarId, otherState) {