Skip to content

Commit

Permalink
fix: fix default parameter syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Jun 14, 2024
1 parent 388c40e commit 7d6096e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/search-modal/data/apiHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,9 @@ export const useContentSearchResults = ({
indexName,
extraFilter,
searchKeywords,
blockTypesFilter,
tagsFilter,
blockTypesFilter = [],
tagsFilter = [],
}) => {
blockTypesFilter ??= []; // eslint-disable-line no-param-reassign -- default value for optional parameter
tagsFilter ??= []; // eslint-disable-line no-param-reassign -- Default value for optional parameter

const query = useInfiniteQuery({
enabled: client !== undefined && indexName !== undefined,
queryKey: [
Expand Down

0 comments on commit 7d6096e

Please sign in to comment.