forked from phoenix/litellm-mirror
build(ui): fix pagination tab
This commit is contained in:
parent
e8675e6394
commit
cff2a8324e
13 changed files with 25 additions and 19 deletions
|
@ -240,7 +240,9 @@ export const userInfoCall = async (
|
|||
accessToken: String,
|
||||
userID: String | null,
|
||||
userRole: String,
|
||||
viewAll: Boolean = false
|
||||
viewAll: Boolean = false,
|
||||
page: number | null,
|
||||
page_size: number | null
|
||||
) => {
|
||||
try {
|
||||
let url = proxyBaseUrl ? `${proxyBaseUrl}/user/info` : `/user/info`;
|
||||
|
@ -248,8 +250,8 @@ export const userInfoCall = async (
|
|||
url = `${url}?user_id=${userID}`;
|
||||
}
|
||||
console.log("in userInfoCall viewAll=", viewAll);
|
||||
if (viewAll) {
|
||||
url = `${url}?view_all=true`;
|
||||
if (viewAll && page && page_size) {
|
||||
url = `${url}?view_all=true&page=${page}&page_size=${page_size}`;
|
||||
}
|
||||
//message.info("Requesting user data");
|
||||
const response = await fetch(url, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue