Skip to content

Commit

Permalink
fix sonar lint
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Nov 11, 2024
1 parent 2511654 commit b3d5cd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/AcqList/hooks/useFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b3d5cd5

Please sign in to comment.