diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-16 13:27:58 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-16 13:28:25 +0100 |
commit | 7d53ee73f323b04757a78e83dcbe49c872d481eb (patch) | |
tree | 5a5ba68d74ca96a97cce6a4cd054f42f28f86b49 /app/assets/javascripts/components/actions/timelines.jsx | |
parent | da5d3662305b3d28af9e88a7168f3a1702351a9a (diff) |
Fix #238 - Add "favourites" column
Diffstat (limited to 'app/assets/javascripts/components/actions/timelines.jsx')
-rw-r--r-- | app/assets/javascripts/components/actions/timelines.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/actions/timelines.jsx b/app/assets/javascripts/components/actions/timelines.jsx index 8bb939d31..975a0e090 100644 --- a/app/assets/javascripts/components/actions/timelines.jsx +++ b/app/assets/javascripts/components/actions/timelines.jsx @@ -97,6 +97,11 @@ export function expandTimeline(timeline, id = null) { return (dispatch, getState) => { const lastId = getState().getIn(['timelines', timeline, 'items'], Immutable.List()).last(); + if (!lastId) { + // If timeline is empty, don't try to load older posts since there are none + return; + } + dispatch(expandTimelineRequest(timeline)); let path = timeline; |