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

Function handleDeleteConfirm

frontend/src/components/apiKey/index.tsx:228–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 setCreateNameValue(e.target.value)
227 }
228 const handleDeleteConfirm = async () => {
229 setDeleteLoading(true)
230
231 await deleteApiKeys(record.apikey_id)
232 setApiKeysList(prevList => prevList.filter(item => record.apikey_id !== item.apikey_id));
233
234 dispatch(fetchApikeysData(20) as any);
235
236 setOpenDeleteModal(false)
237 setDeleteLoading(false)
238 }
239 return (
240 <div className={styles["api-keys"]}>
241

Callers

nothing calls this directly

Calls 3

deleteApiKeysFunction · 0.90
fetchApikeysDataFunction · 0.90
filterMethod · 0.45

Tested by

no test coverage detected