mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-27 16:24:24 +00:00
Fix deselecting community/creator filter for search form (#2416)
This commit is contained in:
parent
be10d62257
commit
0dbfe050cf
|
@ -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