Skip to content

Commit

Permalink
fix(dashboard): activity feed pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy committed Dec 27, 2024
1 parent 936aa78 commit 679ee4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/dashboard/src/hooks/use-activity-url-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export function useActivityUrlState(): ActivityUrlState & {
newParams.set('dateRange', data.dateRange);
}

if (searchParams.get('page')) {
newParams.set('page', searchParams.get('page') || '0');
}

setSearchParams(newParams, { replace: true });
},
[activityItemId, setSearchParams]
Expand Down

0 comments on commit 679ee4c

Please sign in to comment.