fix some more warnings

This commit is contained in:
Henry Jameson 2022-03-28 17:21:42 +03:00
parent c57af7e242
commit bdd240a230
2 changed files with 3 additions and 3 deletions

View file

@ -43,8 +43,8 @@ const Timeline = {
filteredVisibleStatuses () { filteredVisibleStatuses () {
return this.timeline.visibleStatuses.filter(status => this.timelineName !== 'user' || (status.id >= this.timeline.minId && status.id <= this.timeline.maxId)) return this.timeline.visibleStatuses.filter(status => this.timelineName !== 'user' || (status.id >= this.timeline.minId && status.id <= this.timeline.maxId))
}, },
filteredPinnedStatusesId () { filteredPinnedStatusIds () {
return this.pinnedStatusIds.filter(statusId => this.timeline.statusesObject[statusId]) return (this.pinnedStatusIds || []).filter(statusId => this.timeline.statusesObject[statusId])
}, },
newStatusCount () { newStatusCount () {
return this.timeline.newStatusCount return this.timeline.newStatusCount

View file

@ -50,7 +50,7 @@ const enableBodyScroll = (el) => {
} }
const directive = { const directive = {
inserted: (el, binding) => { mounted: (el, binding) => {
if (binding.value) { if (binding.value) {
disableBodyScroll(el) disableBodyScroll(el)
} }