Skip to content

Commit 3a15a83

Browse files
author
Saurabh Kumar Bajpai
committed
fix: additional real bug fixes
1 parent 7fb65ca commit 3a15a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎frontend/js/chat.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ Tell me: what is stirring in you today?`,
908908
}
909909

910910
exportChat() {
911-
const chatText = this.conversationHistory.map(message => {
911+
const chatText = this.(conversationHistory ?? []).map(message => {
912912
const sender = message.type === 'user' ? 'You' : 'Bookseller';
913913
const time = this.formatTime(message.timestamp);
914914
return `[${time}] ${sender}: ${message.content}`;

0 commit comments

Comments
 (0)