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

Commit a1a7de0

Browse files
authored
Merge pull request #6687 from matrix-org/travis/left-panel-widget-expand
Fix left panel widgets not remembering collapsed state
2 parents 32ad94b + 4415a70 commit a1a7de0

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)