Skip to content

Commit

Permalink
Desktop: Fixed sidebar tag header click
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Oct 26, 2022
1 parent ea6b7ca commit 5b80fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-desktop/gui/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ const SidebarComponent = (props: Props) => {
}, [props.dispatch]);

const onHeaderClick_ = useCallback((key: string) => {
const isExpanded = key === 'tag' ? props.tagHeaderIsExpanded : props.folderHeaderIsExpanded;
Setting.setValue(key === 'tag' ? 'tagHeaderIsExpanded' : 'folderHeaderIsExpanded', !isExpanded);
const isExpanded = key === 'tagHeader' ? props.tagHeaderIsExpanded : props.folderHeaderIsExpanded;
Setting.setValue(key === 'tagHeader' ? 'tagHeaderIsExpanded' : 'folderHeaderIsExpanded', !isExpanded);
}, [props.folderHeaderIsExpanded, props.tagHeaderIsExpanded]);

const onAllNotesClick_ = () => {
Expand Down

0 comments on commit 5b80fbc

Please sign in to comment.