Skip to content

Commit

Permalink
DIGG-465: Fixing button state
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopin1 committed Nov 25, 2024
1 parent ca14e8e commit 911b182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/content/Search/SearchFilters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ export const SearchFilters: React.FC<SearchFilterProps> = ({
aria-controls="filter-content"
onClick={() => updateFilters()}
label={showFilter ? t("common|hide-filter") : t("common|show-filter")}
disabled={search.loadingFacets}
disabled={
search.loadingFacets && Object.keys(groupedFacets).length === 0
}
/>

<div
Expand Down

0 comments on commit 911b182

Please sign in to comment.