Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4415a70

Browse files
committed
Fix left panel widgets not remembering collapsed state
Fixes element-hq/element-web#17803 The `setExpanded` function takes a boolean, not a function.
1 parent ee95e36 commit 4415a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/LeftPanelWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const LeftPanelWidget: React.FC = () => {
115115
aria-expanded={expanded}
116116
aria-level={1}
117117
onClick={() => {
118-
setExpanded(e => !e);
118+
setExpanded(!expanded);
119119
}}
120120
>
121121
<span className={classNames({

0 commit comments

Comments
 (0)