mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
Set defaults for name_filter
This commit is contained in:
@@ -14,7 +14,7 @@ export const reducers = (state = initialState, action) => {
|
|||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
user_page: action.value.page,
|
user_page: action.value.page,
|
||||||
user_data: action.value.data,
|
user_data: action.value.data,
|
||||||
name_filter: action.value.name_filter,
|
name_filter: action.value.name_filter || "",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Updates the client group model data and stores the page
|
// Updates the client group model data and stores the page
|
||||||
|
@@ -4,7 +4,7 @@ import { jhapiRequest } from "./jhapiUtil";
|
|||||||
const withAPI = withProps(() => ({
|
const withAPI = withProps(() => ({
|
||||||
updateUsers: (offset, limit, name_filter) =>
|
updateUsers: (offset, limit, name_filter) =>
|
||||||
jhapiRequest(
|
jhapiRequest(
|
||||||
`/users?offset=${offset}&limit=${limit}&name_filter=${name_filter}`,
|
`/users?offset=${offset}&limit=${limit}&name_filter=${name_filter || ""}`,
|
||||||
"GET"
|
"GET"
|
||||||
).then((data) => data.json()),
|
).then((data) => data.json()),
|
||||||
updateGroups: (offset, limit) =>
|
updateGroups: (offset, limit) =>
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user