MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / onSelect

Function onSelect

ui/src/Page/DatabasePage.js:61–68  ·  view source on GitHub ↗
(selectedKeys, info)

Source from the content-addressed store, hash-verified

59 }
60
61 const onSelect = (selectedKeys, info) => {
62 console.log('selected', selectedKeys, info);
63 setSelectKey(selectedKeys[0])
64 setEditorContent({
65 json:databaseItems[selectedKeys[0]]?JSON.parse(databaseItems[selectedKeys[0]]):{},
66 text:undefined
67 })
68 }
69
70
71 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected