fix: issue with toggling the author

This commit is contained in:
Aien Saidi 2021-03-24 17:13:20 +01:00 committed by Sascha
parent f82071a3d7
commit 248201bcbd

View File

@ -163,7 +163,7 @@ function FilterToolbar({ query, queryLocation }: Props) {
<FilterDropdown
dropdown={identities}
itemActive={(key) => hasValue('author', key)}
to={(key) => pipe(replaceParam('author', key), loc)(params)}
to={(key) => pipe(toggleParam('author', key), loc)(params)}
hasFilter
>
Author
@ -174,7 +174,7 @@ function FilterToolbar({ query, queryLocation }: Props) {
to={(key) => pipe(toggleOrAddParam('label', key), loc)(params)}
hasFilter
>
Label
Labels
</FilterDropdown>
<FilterDropdown
dropdown={[