Skip to content

Commit 4c24adb

Browse files
authored
Fix filter bug (#5124)
1 parent 5866ca4 commit 4c24adb

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

site/src/xServices/users/usersXService.ts

+4-9
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,12 @@ export const usersMachine =
137137
id: "usersState",
138138
on: {
139139
UPDATE_FILTER: {
140-
target: ".gettingUsers",
141140
actions: ["assignFilter", "sendResetPage"],
142141
},
142+
UPDATE_PAGE: {
143+
target: "gettingUsers",
144+
actions: "updateURL",
145+
},
143146
},
144147
initial: "startingPagination",
145148
states: {
@@ -199,14 +202,6 @@ export const usersMachine =
199202
target: "updatingUserRoles",
200203
actions: "assignUserIdToUpdateRoles",
201204
},
202-
UPDATE_PAGE: {
203-
target: "gettingUsers",
204-
actions: "updateURL",
205-
},
206-
UPDATE_FILTER: {
207-
target: "gettingUsers",
208-
actions: ["assignFilter", "sendResetPage"],
209-
},
210205
},
211206
},
212207
confirmUserSuspension: {

0 commit comments

Comments
 (0)