Skip to content

Commit

Permalink
fix: clear current page when executing new search
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Dec 24, 2024
1 parent cec9e01 commit 7ce5f5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion basxbread/layout/components/datatable.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,10 @@ def searchbar(search_urlparameter: str):
hg.C("request").GET.lists(),
"urlparameter",
hg.If(
hg.F(lambda c: c["urlparameter"][0] != search_urlparameter),
hg.F(
lambda c: c["urlparameter"][0] != search_urlparameter
and c["urlparameter"][0] != "page"
),
hg.Iterator(
hg.C("urlparameter")[1],
"urlvalue",
Expand Down

0 comments on commit 7ce5f5a

Please sign in to comment.