Skip to content

Commit

Permalink
Merge pull request #18 from developmentseed/fix/use-filter-with-qs-usage
Browse files Browse the repository at this point in the history
fix(routing): correct useFilterWithQS usage
  • Loading branch information
vgeorge authored Nov 25, 2024
2 parents bca5dd2 + a61db3a commit aeb1b11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/(datasets)/data-catalog/catalog.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
'use client';
import React from 'react';
import { CatalogView, useFiltersWithQS } from '@lib';
import { useRouter } from 'next/navigation';
import { usePathname } from 'next/navigation';
import Link from 'next/link';

export default function Catalog({ datasets }: { datasets: any }) {
const router = useRouter();
const pathname = usePathname();
const controlVars = useFiltersWithQS({ navigate: router, push: true });
const controlVars = useFiltersWithQS();

return (
<CatalogView
Expand Down

0 comments on commit aeb1b11

Please sign in to comment.