Skip to content

Commit 59365cd

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

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
@@ -927,7 +927,7 @@ Tell me: what is stirring in you today?`,
927927

928928
extractMoodKeywordsFromHistory() {
929929
try {
930-
const textBlob = this.conversationHistory.map(m => (m.content || '')).join(' ');
930+
const textBlob = this.(conversationHistory ?? []).map(m => (m.content || '')).join(' ');
931931
const keywords = [];
932932
const moodHints = ['cozy','comfort','romance','mystery','thriller','dark','uplifting','melancholy','adventure','fantasy','science fiction','sci-fi','historical','literary'];
933933
const lower = textBlob.toLowerCase();

0 commit comments

Comments
 (0)