Explorar o código

Fix notifications/interactions null dereference

Alexander Tumin %!s(int64=2) %!d(string=hai) anos
pai
achega
48be4e9cb6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/components/notifications/notifications.js

+ 3 - 0
src/components/notifications/notifications.js

@@ -101,6 +101,9 @@ const Notifications = {
     if (!this.scrollerRef) {
       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)
   },
   unmounted () {