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

Function handleRecord

frontend/src/components/retrieval/index.tsx:222–230  ·  view source on GitHub ↗
(val: any, recordOrChunk: string)

Source from the content-addressed store, hash-verified

220 setIsVisible(false)
221 }
222 const handleRecord = (val: any, recordOrChunk: string) => {
223 setIsVisible(false)
224 setCollectionRecordId(val.collection_id)
225 const routeData = recordOrChunk.toLowerCase()
226 navigate(`/project/collections/${val.collection_id}/${routeData}`)
227 setDrawerName(val.name || 'Untitled Collection')
228 setRecordOrChunk(recordOrChunk)
229 setRecordOpen(true)
230 }
231 const handleEdit = (val: any) => {
232 setDrawerTitle('Edit Collection')
233 setDrawerName(val.name ? val.name : undefined)

Callers 1

RetrievalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected