forked from phoenix/litellm-mirror
Merge pull request #2809 from BerriAI/ui_use_token_id_in_key_gen
[UI] QA Fix Edit Key flow - return `token_id` in /key/generate respose
This commit is contained in:
commit
326f95244a
3 changed files with 10 additions and 1 deletions
|
@ -213,6 +213,11 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
|||
|
||||
const handleEditClick = (token: any) => {
|
||||
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);
|
||||
setEditModalVisible(true);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue