We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb4888 commit f29394cCopy full SHA for f29394c
src/ChatWindow/Room/Room.vue
@@ -570,7 +570,7 @@ export default {
570
571
if (index !== this.messages.length - 1) return
572
573
- const messageHeight = document.getElementById(message._id).offsetHeight
+ const messageHeight = document.getElementById(message._id)?.offsetHeight
574
const autoScrollOffset = messageHeight + 60
575
576
setTimeout(() => {
0 commit comments