Skip to content

Commit

Permalink
client: Fix regression introduced in PR #519, fixes #522 (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Soro authored Mar 9, 2022
1 parent e368cac commit f7d5fff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/javascript/components/sidebar/TagFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import TorrentFilterStore from '../../stores/TorrentFilterStore';

const TagFilters: FC = observer(() => {
const {i18n} = useLingui();
const [expanded, setExpanded] = useState<boolean>(true);

const tags = Object.keys(TorrentFilterStore.taxonomy.tagCounts);

Expand Down Expand Up @@ -43,7 +44,6 @@ const TagFilters: FC = observer(() => {

const title = i18n._('filter.tag.title');

const [expanded, setExpanded] = useState<boolean>(true);
const expandoClick = () => {
setExpanded(!expanded);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import TorrentFilterStore from '../../stores/TorrentFilterStore';

const TrackerFilters: FC = observer(() => {
const {i18n} = useLingui();
const [expanded, setExpanded] = useState<boolean>(true);

const trackers = Object.keys(TorrentFilterStore.taxonomy.trackerCounts);

Expand Down Expand Up @@ -42,7 +43,6 @@ const TrackerFilters: FC = observer(() => {

const title = i18n._('filter.tracker.title');

const [expanded, setExpanded] = useState<boolean>(true);
const expandoClick = () => {
setExpanded(!expanded);
};
Expand Down

0 comments on commit f7d5fff

Please sign in to comment.