Skip to content

Commit

Permalink
Remove failing ESlint check, out of the scope of this PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Sep 18, 2023
1 parent 457239d commit b1c8509
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/manage/Blocks/Search/hocs/withSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ const withSearch = (options) => (WrappedComponent) => {
editable,
);

// TODO: Improve the hook dependencies out of the scope of https://github.com/plone/volto/pull/4662
// eslint-disable-next-line react-hooks/exhaustive-deps
const urlQuery = locationSearchData.query
? deserializeQuery(locationSearchData.query)
: [];
Expand All @@ -250,6 +252,8 @@ const withSearch = (options) => (WrappedComponent) => {

// TODO: refactor, should use only useLocationStateManager()!!!
const [searchText, setSearchText] = React.useState(urlSearchText);
// TODO: Improve the hook dependencies out of the scope of https://github.com/plone/volto/pull/4662
// eslint-disable-next-line react-hooks/exhaustive-deps
const configuredFacets =
data.facets?.map((facet) => facet?.field?.value) || [];
const multiFacets = data.facets
Expand Down

0 comments on commit b1c8509

Please sign in to comment.