feat: remove propdrilling for custom onFileRemove handler and just make it default behavior for PromptFile rather than working around old deletion handlers

This commit is contained in:
Dustin Healy 2025-09-07 01:13:08 -07:00
parent a52c37faad
commit 0a61e3cb39
5 changed files with 11 additions and 52 deletions

View file

@ -196,7 +196,6 @@ const PromptForm = () => {
getToolResources,
promptFiles: hookPromptFiles,
handleFileChange,
handleFileRemove,
setFiles,
} = usePromptFileHandling({
onFileChange: (updatedFiles) => {
@ -544,7 +543,6 @@ const PromptForm = () => {
files={hookPromptFiles}
onFilesChange={setFiles}
handleFileChange={handleFileChange}
onFileRemove={handleFileRemove}
disabled={!canEdit}
/>
<Description