Skip to content

Commit

Permalink
fix: set page to 1 when applying filters
Browse files Browse the repository at this point in the history
  • Loading branch information
dziraf committed Nov 22, 2023
1 parent 57232ed commit a2d82ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/components/app/filter-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const FilterDrawer: React.FC<FilterProps> = (props) => {

const handleSubmit = (event: SubmitEvent) => {
event.preventDefault()
storeParams({ filters: pickBy(filter, (v) => !isNil(v)) })
storeParams({ filters: pickBy(filter, (v) => !isNil(v)), page: '1' })
}

const handleReset = (event: SubmitEvent) => {
Expand Down

0 comments on commit a2d82ce

Please sign in to comment.