diff --git a/src/components/structures/RightPanel.tsx b/src/components/structures/RightPanel.tsx index d5cc67b3b8..21e2a2ee71 100644 --- a/src/components/structures/RightPanel.tsx +++ b/src/components/structures/RightPanel.tsx @@ -64,6 +64,12 @@ export default class RightPanel extends React.Component { public static contextType = MatrixClientContext; declare public context: React.ContextType; + public constructor(props: Props) { + super(props); + + this.state = RightPanel.getDerivedStateFromProps(props); + } + private readonly delayedUpdate = throttle( (): void => { this.forceUpdate();