MCPcopy Create free account
hub / github.com/PaulleDemon/PyUIBuilder / handleDelete

Function handleDelete

src/sidebar/uploadsContainer.js:75–78  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

73 }
74
75 function handleDelete(file){
76 // remove the file from the asset on delete
77 setUploadedAssets(prev => prev.filter(val => val.uid !== file.uid))
78 }
79
80 function generateUniqueFileName(fileName) {
81 const existingFiles = uploadedAssets.map(asset => asset.name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected