diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/uploadFileButton/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/uploadFileButton/index.tsx index be2b9c7fc..e675794e0 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/uploadFileButton/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/uploadFileButton/index.tsx @@ -5,17 +5,20 @@ const UploadFileButton = ({ fileInputRef, handleFileChange, handleButtonClick, + lockChat, }) => { return (
-
+
{ setFiles((prev: FilePreviewType[]) => - prev.filter((f) => f.id !== file.id) + prev.filter((f) => f.id !== file.id), ); // TODO: delete file on backend }}