forked from phoenix/litellm-mirror
(fix) ui - npm run build fix
This commit is contained in:
parent
61d1a9a0be
commit
9cdf4a5aa8
1 changed files with 75 additions and 75 deletions
|
@ -41,6 +41,7 @@ const ViewKeySpendReport: React.FC<ViewKeySpendReportProps> = ({ token, accessTo
|
|||
}
|
||||
|
||||
// call keySpendLogsCall and set the data
|
||||
useEffect(() => {
|
||||
const fetchData = async () => {
|
||||
try {
|
||||
const response = await keySpendLogsCall(accessToken=accessToken, token=token);
|
||||
|
@ -112,11 +113,10 @@ const ViewKeySpendReport: React.FC<ViewKeySpendReportProps> = ({ token, accessTo
|
|||
// Optionally, update your UI to reflect the error state here as well
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
// Fetch data only when the token changes
|
||||
fetchData();
|
||||
}, [token]); // Dependency array containing the 'token' variable
|
||||
}, [token, accessToken]);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue