Shared: Filter: Fix clear filter button not showing when there are applied filters

This commit is contained in:
Aleksandr Lushkin 2024-07-19 11:38:33 +02:00
parent 080f560a38
commit 24398334fc

View File

@ -479,6 +479,8 @@ const FilterBlock = ({
};
const showFooter = isLoading ? false : isEqualFilter();
const showClearFilterBtn =
!isLoading && (selectedFilterValue.length > 0 || filterValues.length > 0);
const filterBlockComponent = (
<>
@ -535,7 +537,7 @@ const FilterBlock = ({
<Heading size={HeadingSize.medium} level={HeadingLevel.h1}>
{filterHeader}
</Heading>
{showFooter && (
{showClearFilterBtn && (
<IconButton
id="filter_search-options-clear"
iconName={ClearReactSvgUrl}