瀏覽代碼

Merge branch 'fix-interactions-null-deref' into 'develop'

Fix interactions tab null dereference

See merge request pleroma/pleroma-fe!1707
HJ 2 年之前
父節點
當前提交
cb175d3f65
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 () {