Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Jun 16, 2023
1 parent 8ce6e56 commit fde154c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react-components/ui-root.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fde154c

Please sign in to comment.