From 7ce5f5a3dc48526e71ada4bf5146b652f381a9b2 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 24 Dec 2024 16:41:49 +0700 Subject: [PATCH] fix: clear current page when executing new search --- basxbread/layout/components/datatable.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basxbread/layout/components/datatable.py b/basxbread/layout/components/datatable.py index a849d134..ecc594e8 100644 --- a/basxbread/layout/components/datatable.py +++ b/basxbread/layout/components/datatable.py @@ -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",