Skip to content

Commit

Permalink
fix(ui): reset page when search term changes
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Jul 3, 2024
1 parent e9936c2 commit 5578660
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const gallerySlice = createSlice({
},
searchTermChanged: (state, action: PayloadAction<string>) => {
state.searchTerm = action.payload;
state.offset = 0;
},
},
});
Expand Down

0 comments on commit 5578660

Please sign in to comment.