diff --git a/packages/dataviews/src/reset-filters.js b/packages/dataviews/src/reset-filters.js index 414bb2f200bf73..d08953374bf637 100644 --- a/packages/dataviews/src/reset-filters.js +++ b/packages/dataviews/src/reset-filters.js @@ -4,17 +4,10 @@ import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; -function hasActiveFilters( view ) { - return ( - view.search !== '' || - view.filters?.some( ( { value } ) => value !== undefined ) - ); -} - export default function ResetFilter( { view, onChangeView } ) { return (