Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Dec 20, 2022
1 parent b0f6149 commit ebfcba5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion searchlib/components/SearchApp/FacetApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function BoostrapFacetView(props) {
const { appConfig, registry } = props;
const {
searchContext: facetSearchContext,
// applySearch,
applySearch,
} = useProxiedSearchContext(useSearchContext(), `${field}`);
const { filters } = facetSearchContext;
console.log('value', value, filters);
Expand Down Expand Up @@ -52,6 +52,7 @@ function BoostrapFacetView(props) {
if (value) {
onChange(value);
facetSearchContext.setFilter(value.field, value.type, value.values);
applySearch();
}
}
}, [
Expand All @@ -62,6 +63,7 @@ function BoostrapFacetView(props) {
setSavedFilters,
value,
facetSearchContext,
applySearch,
]);

return (
Expand Down
1 change: 1 addition & 0 deletions searchlib/lib/hocs/useProxiedSearchContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default function useProxiedSearchContext(
// this is updated async. The state update with Date is used to force refresh
sc.facets = searchContext.facets;
}
console.log('filters', sc.filters);

const res = {
searchContext: sc,
Expand Down

0 comments on commit ebfcba5

Please sign in to comment.