| 125 | await deleteForm.resetFields() |
| 126 | } |
| 127 | const handleShow = async (val: any) => { |
| 128 | let res: any; |
| 129 | if (val.apikey.includes('***')) { |
| 130 | res = await getApiKeys(val.apikey_id, 'true') |
| 131 | } else { |
| 132 | res = await getApiKeys(val.apikey_id, 'false') |
| 133 | } |
| 134 | |
| 135 | const updatedApiKeysList = apiKeysList.map((item: any) => { |
| 136 | if (item.apikey_id === val.apikey_id) { |
| 137 | return res.data; |
| 138 | } |
| 139 | return { |
| 140 | ...item, |
| 141 | key: item.apikey_id |
| 142 | } |
| 143 | }); |
| 144 | setApiKeysList(updatedApiKeysList); |
| 145 | } |
| 146 | const handleEdit = async (val: any) => { |
| 147 | setInitialValues({ |
| 148 | name: val.name, |