Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Feb 13, 2023
1 parent 5a1699f commit bf3811c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions searchlib/components/SearchApp/FacetApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function FacetApp(props) {
// }
// }, [value, filters, field, setFilter, driver]); // searchContext

const activeValue = filters.find((f) => f.field === field);
// const activeValue = filters.find((f) => f.field === field);

// const dirty = !isEqual(activeValue, value);
// console.log('redraw facet', { value, activeValue, dirty });
Expand Down Expand Up @@ -131,17 +131,17 @@ export default function FacetApp(props) {
onRemove={() => {
const filter = driver.state.filters.find((f) => f.field === field);
onChange(filter);
console.log('onRemove', JSON.stringify(driver.state.filters));
// console.log('onRemove', JSON.stringify(driver.state.filters));
}}
onChange={() => {
const filter = driver.state.filters.find((f) => f.field === field);
onChange(filter);
console.log('onChange', JSON.stringify(driver.state.filters));
// console.log('onChange', JSON.stringify(driver.state.filters));
}}
onSelect={() => {
const filter = driver.state.filters.find((f) => f.field === field);
onChange(filter);
console.log('onSelect', JSON.stringify(driver.state.filters));
// console.log('onSelect', JSON.stringify(driver.state.filters));
}}
/>
);
Expand Down

0 comments on commit bf3811c

Please sign in to comment.