MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / onDeleteConfirm

Function onDeleteConfirm

frontend/src/components/chunkPage/index.tsx:168–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 setOpenDeleteModal(false)
167 }
168 const onDeleteConfirm = async () => {
169 try {
170 await deleteRecord(collectionId, deleteId)
171 const params = {
172 limit: limit || 20,
173 }
174 await fetchData(collectionId, params)
175 setUpdatePrevButton(true)
176 } catch (error) {
177 console.log(error)
178 }
179 setOpenDeleteModal(false)
180 }
181 const handleEdit = async (record: any) => {
182 setLoading(true)
183 setDrawerTitle(`${t('projectChunkEditChunk')}`)

Callers

nothing calls this directly

Calls 2

deleteRecordFunction · 0.90
fetchDataFunction · 0.70

Tested by

no test coverage detected