MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / handleRemoveFile

Function handleRemoveFile

frontend/components/chat-input.tsx:234–239  ·  view source on GitHub ↗
(fileToRemove: File)

Source from the content-addressed store, hash-verified

232 }
233
234 const handleRemoveFile = (fileToRemove: File) => {
235 onFileChange(files.filter((file) => file !== fileToRemove))
236 if (fileInputRef.current) {
237 fileInputRef.current.value = ""
238 }
239 }
240
241 const triggerFileInput = () => {
242 fileInputRef.current?.click()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected