Add front end tests for user search

This commit is contained in:
Narek Amirbekian
2022-03-14 17:54:51 -07:00
parent 1b3b005ca4
commit 3a59a15164
6 changed files with 130 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
export const initialState = {
user_data: undefined,
user_page: 0,
name_filter: "",
groups_data: undefined,
groups_page: 0,
limit: window.api_page_limit,
@@ -13,6 +14,7 @@ export const reducers = (state = initialState, action) => {
return Object.assign({}, state, {
user_page: action.value.page,
user_data: action.value.data,
name_filter: action.value.name_filter,
});
// Updates the client group model data and stores the page