mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-27 09:44:50 +00:00
set bounty page 1 when filters or sorting change
This commit is contained in:
parent
161cd7bd99
commit
cc1cedbbbd
@ -467,9 +467,12 @@
|
|||||||
(reg-event-db
|
(reg-event-db
|
||||||
::set-open-bounties-sorting-type
|
::set-open-bounties-sorting-type
|
||||||
(fn [db [_ sorting-type]]
|
(fn [db [_ sorting-type]]
|
||||||
(assoc db ::db/open-bounties-sorting-type sorting-type)))
|
(merge db {::db/open-bounties-sorting-type sorting-type
|
||||||
|
:bounty-page-number 1})))
|
||||||
|
|
||||||
(reg-event-db
|
(reg-event-db
|
||||||
::set-open-bounty-filter-type
|
::set-open-bounty-filter-type
|
||||||
(fn [db [_ filter-type filter-value]]
|
(fn [db [_ filter-type filter-value]]
|
||||||
(assoc-in db [::db/open-bounties-filters filter-type] filter-value)))
|
(-> db
|
||||||
|
(assoc-in [::db/open-bounties-filters filter-type] filter-value)
|
||||||
|
(assoc :bounty-page-number 1))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user