mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-10 03:24:24 +01:00
📂 refactor: Improve FileAttachment & File Form Deletion (#7471)
* refactor: optional attachment properties for `FileAttachment` * refactor: update ActionButton to use localized text * chore: localize text in DataTableFile, add missing translation, imports order, and linting * chore: linting in DataTable * fix: integrate Recoil state management for file deletion in DataTableFile * fix: integrate Recoil state management for file deletion in DataTable * fix: add temp_file_id to BatchFile type and update deleteFiles logic to properly remove files that are mapped to temp_file_id
This commit is contained in:
parent
e86842fd19
commit
eb1668ff22
7 changed files with 65 additions and 40 deletions
|
|
@ -131,6 +131,7 @@ export type BatchFile = {
|
|||
filepath: string;
|
||||
embedded: boolean;
|
||||
source: FileSources;
|
||||
temp_file_id?: string;
|
||||
};
|
||||
|
||||
export type DeleteFilesBody = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue