Skip to content

Commit cbf9aa4

Browse files
committed
fix(chat): check if history exists before processing
1 parent 1a053f2 commit cbf9aa4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Version 0.62.5 (2025-05-20)
44
1. Fixed (another) bug with advanced map
5+
1. Fixed bug with chat
56

67
## Version 0.62.4 (2025-04-14)
78
1. Fixed bug with advanced map

src/hooks/chat.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ export default function reconnect(force = false) {
9191
}
9292

9393
function getMessages({ discussionHistory, otherHistory }) {
94+
if (!discussionHistory || !otherHistory) {
95+
return [];
96+
}
9497
const history = [
9598
...JSON.parse(discussionHistory),
9699
...JSON.parse(otherHistory),

0 commit comments

Comments
 (0)