Skip to content

Commit

Permalink
fix: reset pagination on project tab change
Browse files Browse the repository at this point in the history
  • Loading branch information
annavik committed Jan 27, 2025
1 parent 47dcbcd commit fd7d68d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/src/pages/projects/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ export const Projects = () => {
isFetching={isFetching}
>
{user.loggedIn ? (
<Tabs.Root onValueChange={setSelectedTab} value={selectedTab}>
<Tabs.Root
onValueChange={(value) => {
setSelectedTab(value)
setPage(0)
}}
value={selectedTab}
>
<Tabs.List>
<Tabs.Trigger
label={translate(STRING.TAB_ITEM_MY_PROJECTS)}
Expand Down

0 comments on commit fd7d68d

Please sign in to comment.