fix edit key flow on admin ui

This commit is contained in:
Ishaan Jaff 2024-04-02 21:38:18 -07:00
parent 15685a8f53
commit 20b479725d

View file

@ -204,6 +204,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);
};