Fixed issue with queries running twice.

This commit is contained in:
Mike Cao 2025-02-11 20:35:36 -08:00
parent 2df67fbad9
commit 9950ecda82
3 changed files with 2 additions and 8 deletions

View file

@ -12,7 +12,7 @@ export function usePagedQuery<T = any>({
const { query: queryParams } = useNavigation();
const [params, setParams] = useState<PageParams>({
search: '',
page: queryParams.page || '1',
page: +queryParams.page || 1,
});
const { useQuery } = useApi();