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.
pull/21833/head
Travis Ralston 2021-08-25 23:10:19 -06:00
parent ee95e36a7c
commit 4415a7037c
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ const LeftPanelWidget: React.FC = () => {
aria-expanded={expanded}
aria-level={1}
onClick={() => {
setExpanded(e => !e);
setExpanded(!expanded);
}}
>
<span className={classNames({