about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/home_timeline/index.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-01 11:11:35 +0100
committerGitHub <noreply@github.com>2019-03-01 11:11:35 +0100
commit3e0ed36e8ede7f1994ab9c46c4cb86e613569440 (patch)
tree20715fa4618d869d897a8ec833f20be14658f167 /app/javascript/mastodon/features/home_timeline/index.js
parent5ecbf4d4c044525af866244758ac7a9e5db3fc7f (diff)
Fix home timeline perpetually reloading when empty (#10130)
Regression from #6876
Diffstat (limited to 'app/javascript/mastodon/features/home_timeline/index.js')
-rw-r--r--app/javascript/mastodon/features/home_timeline/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/home_timeline/index.js b/app/javascript/mastodon/features/home_timeline/index.js
index 3ffa7a681..097f91c16 100644
--- a/app/javascript/mastodon/features/home_timeline/index.js
+++ b/app/javascript/mastodon/features/home_timeline/index.js
@@ -16,7 +16,7 @@ const messages = defineMessages({
 
 const mapStateToProps = state => ({
   hasUnread: state.getIn(['timelines', 'home', 'unread']) > 0,
-  isPartial: state.getIn(['timelines', 'home', 'items', 0], null) === null,
+  isPartial: state.getIn(['timelines', 'home', 'isPartial']),
 });
 
 export default @connect(mapStateToProps)