Skip to content

Commit

Permalink
Fixes data view search bug on any page other than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecmart committed Nov 19, 2024
1 parent 073d4c0 commit e8c88ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/protolib/src/components/DataView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ const DataViewInternal = forwardRef(({

useUpdateEffect(() => {
if (search) {
push("search", search)
mergePush({
search: search,
page: 0
})
} else {
removePush("search")
}
Expand Down

0 comments on commit e8c88ea

Please sign in to comment.