mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-04 15:20:18 +01:00
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:
parent
a52c37faad
commit
0a61e3cb39
5 changed files with 11 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue