From 0dbfe050cfd08665332039c68d4f27ac3a62726c Mon Sep 17 00:00:00 2001 From: matc-pub <161147791+matc-pub@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:43:34 +0200 Subject: [PATCH] Fix deselecting community/creator filter for search form (#2416) --- src/shared/components/search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/components/search.tsx b/src/shared/components/search.tsx index c1e85ff5..a883c78d 100644 --- a/src/shared/components/search.tsx +++ b/src/shared/components/search.tsx @@ -1069,14 +1069,14 @@ export class Search extends Component { 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, }); }