diff --git a/web/ASC.Web.Components/src/components/filter-input/filter-block.js b/web/ASC.Web.Components/src/components/filter-input/filter-block.js index 937e7a7458..26994ca9e8 100644 --- a/web/ASC.Web.Components/src/components/filter-input/filter-block.js +++ b/web/ASC.Web.Components/src/components/filter-input/filter-block.js @@ -214,12 +214,13 @@ class FilterBlock extends React.Component { render() { const _this = this; const filterItems = this.getFilterItems(); + const filterData = this.props.getFilterData(); return ( <> {filterItems} - {filterItems.length > 0 && } + {filterData.length > 0 && } ); } @@ -231,7 +232,8 @@ FilterBlock.propTypes = { hideFilterItems: PropTypes.array, openFilterItems: PropTypes.array, onRender: PropTypes.func, - onDeleteFilterItem: PropTypes.func + onDeleteFilterItem: PropTypes.func, + getFilterData: PropTypes.func } export default FilterBlock; \ No newline at end of file