fix compile error

This commit is contained in:
Martin Aeschlimann
2025-04-15 15:49:54 +02:00
committed by Oleg Solomko
parent e7c4be1bcc
commit 7a2be83a1d

View File

@@ -108,16 +108,16 @@ export const attachInstructionsFiles = async (
const widget = await getChatWidgetObject(options);
const wasAlreadyAttached: URI[] = [];
const wereAlreadyAttached: URI[] = [];
for (const file of files) {
if (widget.attachmentModel.promptInstructions.add(file)) {
wasAlreadyAttached.push(file);
wereAlreadyAttached.push(file);
continue;
}
}
return { widget, wasAlreadyAttached };
return { widget, wereAlreadyAttached };
};
/**