Fix deselecting community/creator filter for search form (#2416)

This commit is contained in:
matc-pub 2024-04-11 12:43:34 +02:00 committed by GitHub
parent be10d62257
commit 0dbfe050cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
});
}