forked from phoenix/litellm-mirror
fix - ui edit keys bug
This commit is contained in:
parent
29f2459151
commit
79be7239a2
1 changed files with 6 additions and 2 deletions
|
@ -63,6 +63,7 @@ interface ItemData {
|
||||||
tpm_limit: string | null;
|
tpm_limit: string | null;
|
||||||
rpm_limit: string | null;
|
rpm_limit: string | null;
|
||||||
token: string;
|
token: string;
|
||||||
|
token_id: string | null;
|
||||||
id: number;
|
id: number;
|
||||||
team_id: string;
|
team_id: string;
|
||||||
metadata: any;
|
metadata: any;
|
||||||
|
@ -215,9 +216,12 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
||||||
console.log("handleEditClick:", token);
|
console.log("handleEditClick:", token);
|
||||||
|
|
||||||
// set token.token to token.token_id if token_id is not null
|
// set token.token to token.token_id if token_id is not null
|
||||||
|
if (token.token == null) {
|
||||||
if (token.token_id !== null) {
|
if (token.token_id !== null) {
|
||||||
token.token = token.token_id;
|
token.token = token.token_id;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setSelectedToken(token);
|
setSelectedToken(token);
|
||||||
setEditModalVisible(true);
|
setEditModalVisible(true);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue