diff --git a/moped-editor/src/components/GridTable/FiltersChips.js b/moped-editor/src/components/GridTable/FiltersChips.js index 2a00a9f5cb..ce796bb69c 100644 --- a/moped-editor/src/components/GridTable/FiltersChips.js +++ b/moped-editor/src/components/GridTable/FiltersChips.js @@ -93,6 +93,18 @@ const FiltersChips = ({ } }; + /** + * Triggered by Filter Chip any/all click + * Sets the IsOr state and the url params state to be the opposite of current isOr state + */ + const toggleIsOrOnClick = () => { + setIsOr(!isOr); + setSearchParams((prevSearchParams) => { + prevSearchParams.set(advancedSearchIsOrParamName, !isOr); + return prevSearchParams; + }); + }; + return ( @@ -101,6 +113,8 @@ const FiltersChips = ({