From 4415a7037c87421ac00c73d6bf68de799ba37419 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 25 Aug 2021 23:10:19 -0600 Subject: [PATCH] Fix left panel widgets not remembering collapsed state Fixes https://github.com/vector-im/element-web/issues/17803 The `setExpanded` function takes a boolean, not a function. --- src/components/structures/LeftPanelWidget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/LeftPanelWidget.tsx b/src/components/structures/LeftPanelWidget.tsx index 144c0e3051..331e428355 100644 --- a/src/components/structures/LeftPanelWidget.tsx +++ b/src/components/structures/LeftPanelWidget.tsx @@ -115,7 +115,7 @@ const LeftPanelWidget: React.FC = () => { aria-expanded={expanded} aria-level={1} onClick={() => { - setExpanded(e => !e); + setExpanded(!expanded); }} >