From fde154c08691f3d1534a834ef8ad651f99241338 Mon Sep 17 00:00:00 2001 From: Nikki Sharpley Date: Fri, 16 Jun 2023 18:29:49 -0400 Subject: [PATCH] add logs --- src/react-components/ui-root.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {