Skip to content

Commit

Permalink
Fix deselecting community/creator filter for search form (#2416)
Browse files Browse the repository at this point in the history
  • Loading branch information
matc-pub authored Apr 11, 2024
1 parent be10d62 commit 0dbfe05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1069,14 +1069,14 @@ export class Search extends Component<SearchRouteProps, SearchState> {

handleCommunityFilterChange({ value }: Choice) {
this.updateUrl({
communityId: getIdFromString(value),
communityId: getIdFromString(value) ?? 0,
page: 1,
});
}

handleCreatorFilterChange({ value }: Choice) {
this.updateUrl({
creatorId: getIdFromString(value),
creatorId: getIdFromString(value) ?? 0,
page: 1,
});
}
Expand Down

0 comments on commit 0dbfe05

Please sign in to comment.