Skip to content
Permalink
Browse files

FIX: Check `postStream.gaps` exists before trying `postSteam.gaps.after`

  • Loading branch information...
davidtaylorhq committed Jun 11, 2019
1 parent 23f457b commit 0ebe5ec1f801ee9d232967e97a34b7f53236cdc8
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/assets/javascripts/discourse/lib/screen-track.js.es6
@@ -115,6 +115,7 @@ export default class {
!stream.canAppendMore && // We are at the end of the stream
stream.posts.lastObject && // The last post exists
stream.posts.lastObject.read && // The last post is read
stream.gaps && // The stream has gaps
!!stream.gaps.after[stream.posts.lastObject.id] && // Stream ends with a gap
stream.topic.last_read_post_number !==
stream.posts.lastObject.post_number +

0 comments on commit 0ebe5ec

Please sign in to comment.
You can’t perform that action at this time.