fix some more warnings
This commit is contained in:
parent
c57af7e242
commit
bdd240a230
@ -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
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user