diff --git a/src/components/structures/LeftPanel.tsx b/src/components/structures/LeftPanel.tsx index c1d04eee32b..eb2a8612519 100644 --- a/src/components/structures/LeftPanel.tsx +++ b/src/components/structures/LeftPanel.tsx @@ -64,7 +64,6 @@ interface IState { @replaceableComponent("structures.LeftPanel") export default class LeftPanel extends React.Component { - private ref = createRef(); private listContainerRef = createRef(); private roomSearchRef = createRef(); private roomListRef = createRef(); @@ -90,7 +89,6 @@ export default class LeftPanel extends React.Component { } public componentDidMount() { - UIStore.instance.trackElementDimensions("LeftPanel", this.ref.current); UIStore.instance.trackElementDimensions("ListContainer", this.listContainerRef.current); UIStore.instance.on("ListContainer", this.refreshStickyHeaders); // Using the passive option to not block the main thread @@ -420,7 +418,7 @@ export default class LeftPanel extends React.Component { ); return ( -
+