forked from phoenix/litellm-mirror
fix edit key flow on admin ui
This commit is contained in:
parent
15685a8f53
commit
20b479725d
1 changed files with 5 additions and 0 deletions
|
@ -204,6 +204,11 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
||||||
|
|
||||||
const handleEditClick = (token: any) => {
|
const handleEditClick = (token: any) => {
|
||||||
console.log("handleEditClick:", token);
|
console.log("handleEditClick:", token);
|
||||||
|
|
||||||
|
// set token.token to token.token_id if token_id is not null
|
||||||
|
if (token.token_id !== null) {
|
||||||
|
token.token = token.token_id;
|
||||||
|
}
|
||||||
setSelectedToken(token);
|
setSelectedToken(token);
|
||||||
setEditModalVisible(true);
|
setEditModalVisible(true);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue