MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / handleShow

Function handleShow

frontend/src/components/apiKey/index.tsx:127–145  ·  view source on GitHub ↗
(val: any)

Source from the content-addressed store, hash-verified

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,

Callers 1

ApiKeysFunction · 0.85

Calls 1

getApiKeysFunction · 0.90

Tested by

no test coverage detected