mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 23:10:54 +00:00
Send more data to sentry about messages.reverse error
This commit is contained in:
parent
10653c12fd
commit
dd5562f9b6
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ define [
|
|||
chat.state.loading = false
|
||||
if messages.length < MESSAGE_LIMIT
|
||||
chat.state.atEnd = true
|
||||
if !messages.reverse?
|
||||
Raven?.captureException(new Error("messages has no reverse property"), { messages: messages })
|
||||
messages.reverse()
|
||||
prependMessages(messages)
|
||||
chat.state.nextBeforeTimestamp = chat.state.messages[0]?.timestamp
|
||||
|
|
Loading…
Reference in a new issue