Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 30, 2023
1 parent 6509d94 commit fbf2f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwa/src/templates/templateParts/filters/FiltersTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export const FiltersTemplate: React.FC<FiltersTemplateProps> = ({ isLoading }) =
const [, params] = url.split("?");
const parsedParams = qs.parse(params);

const getCategories = useAvailableFilters().getCategories();

const handleSetFormValues = (params: any): void => {
const basicFields: string[] = ["_search", "category"];
basicFields.forEach((field) => setValue(field, params[field]));
Expand Down Expand Up @@ -108,8 +110,6 @@ export const FiltersTemplate: React.FC<FiltersTemplateProps> = ({ isLoading }) =
setPagination({ currentPage: 1 });
}, [filters]);

const getCategories = useAvailableFilters().getCategories();

React.useEffect(() => {
if (!getCategories.isSuccess) return;

Expand Down

0 comments on commit fbf2f00

Please sign in to comment.