aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-03-28 17:21:42 +0300
committerHenry Jameson <me@hjkos.com>2022-03-28 17:21:42 +0300
commitbdd240a2308ee729680a7e9d0cf7d801dfdbe4cc (patch)
tree6e5aa9963e021bb84bf2998500aac5b90d75eaaa /src/components/timeline/timeline.js
parentc57af7e242ac4294f15738cbf723abd6e3fc8a6c (diff)
fix some more warnings
Diffstat (limited to 'src/components/timeline/timeline.js')
-rw-r--r--src/components/timeline/timeline.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index 6ede1dc5..8ec5d1e5 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -43,8 +43,8 @@ const Timeline = {
filteredVisibleStatuses () {
return this.timeline.visibleStatuses.filter(status => this.timelineName !== 'user' || (status.id >= this.timeline.minId && status.id <= this.timeline.maxId))
},
- filteredPinnedStatusesId () {
- return this.pinnedStatusIds.filter(statusId => this.timeline.statusesObject[statusId])
+ filteredPinnedStatusIds () {
+ return (this.pinnedStatusIds || []).filter(statusId => this.timeline.statusesObject[statusId])
},
newStatusCount () {
return this.timeline.newStatusCount