Skip to content

Commit

Permalink
fix: Saved Insights scroll to top on page change (#23827)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhpillai authored Jul 18, 2024
1 parent 56d1174 commit 6f8c23d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/scenes/saved-insights/savedInsightsLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const savedInsightsLogic = kea<savedInsightsLogicType>([

// scroll to top if the page changed, except if changed via back/forward
if (
router.values.location.pathname === urls.savedInsights() &&
sceneLogic.values.activeScene === Scene.SavedInsights &&
router.values.lastMethod !== 'POP' &&
values.insights.filters?.page !== filters.page
) {
Expand Down

0 comments on commit 6f8c23d

Please sign in to comment.