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 () {
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

View file

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