(feat:attach) renaming, semantic identifier names

This commit is contained in:
ManishMadan2882
2025-06-06 21:52:10 +05:30
parent 50248cc9ea
commit 4862548e65
3 changed files with 8 additions and 8 deletions

View File

@@ -109,7 +109,7 @@ export default function Conversation() {
const trimmedQuestion = question.trim();
if (trimmedQuestion === '') return;
const attachmentMetadata = attachments
const filesAttached = attachments
.filter((a) => a.id && a.status === 'completed')
.map((a) => ({ id: a.id as string, fileName: a.fileName }));
@@ -121,7 +121,7 @@ export default function Conversation() {
dispatch(
addQuery({
prompt: trimmedQuestion,
attachments: attachmentMetadata,
attachments: filesAttached,
}),
);
handleFetchAnswer({ question: trimmedQuestion, index });