Fix notifications/interactions null dereference

This commit is contained in:
Alexander Tumin 2022-12-11 18:50:34 +03:00
parent 830b0008a2
commit 48be4e9cb6
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ const Notifications = {
if (!this.scrollerRef) { if (!this.scrollerRef) {
this.scrollerRef = this.$refs.root.closest('.mobile-notifications') this.scrollerRef = this.$refs.root.closest('.mobile-notifications')
} }
if (!this.scrollerRef) {
this.scrollerRef = this.$refs.root.closest('.column.main')
}
this.scrollerRef.addEventListener('scroll', this.updateScrollPosition) this.scrollerRef.addEventListener('scroll', this.updateScrollPosition)
}, },
unmounted () { unmounted () {