diff --git a/lib/AcqList/hooks/useFilters.js b/lib/AcqList/hooks/useFilters.js index c335edf8..e266baa5 100644 --- a/lib/AcqList/hooks/useFilters.js +++ b/lib/AcqList/hooks/useFilters.js @@ -9,15 +9,16 @@ import { } from '../constants'; const INITIAL_FILTERS = {}; +const OPTIONS = {}; -const useFilters = (resetData, initialFilters = INITIAL_FILTERS, options) => { +const useFilters = (resetData, initialFilters = INITIAL_FILTERS, options = OPTIONS) => { const [filters, setFilters] = useState(initialFilters); const [searchQuery, setSearchQuery] = useState(''); const [searchIndex, setSearchIndex] = useState(''); const { skipTrimOnChange = false, - } = options || {}; + } = options; const applyFilters = useCallback( (type, value) => {