diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-28 17:21:42 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-28 17:21:42 +0300 |
| commit | bdd240a2308ee729680a7e9d0cf7d801dfdbe4cc (patch) | |
| tree | 6e5aa9963e021bb84bf2998500aac5b90d75eaaa /src/components/timeline | |
| parent | c57af7e242ac4294f15738cbf723abd6e3fc8a6c (diff) | |
fix some more warnings
Diffstat (limited to 'src/components/timeline')
| -rw-r--r-- | src/components/timeline/timeline.js | 4 |
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 |
