logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: bdd240a2308ee729680a7e9d0cf7d801dfdbe4cc
parent c57af7e242ac4294f15738cbf723abd6e3fc8a6c
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 28 Mar 2022 17:21:42 +0300

fix some more warnings

Diffstat:

Msrc/components/timeline/timeline.js4++--
Msrc/directives/body_scroll_lock.js2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 diff --git a/src/directives/body_scroll_lock.js b/src/directives/body_scroll_lock.js @@ -50,7 +50,7 @@ const enableBodyScroll = (el) => { } const directive = { - inserted: (el, binding) => { + mounted: (el, binding) => { if (binding.value) { disableBodyScroll(el) }