mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 21:31:12 +00:00
Fix deselecting community/creator filter for search form (#2416)
This commit is contained in:
parent
be10d62257
commit
0dbfe050cf
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue