aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-12-21 21:08:21 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-12-21 21:08:21 +0000
commitcb175d3f65ea79acc54949a3e33e926ce1357733 (patch)
treeaf22210d0c55020dd37b90d96c09e2fc11d9cdfb /src/components/notifications/notifications.js
parent830b0008a293b7542ae140568c4c2e5587c4b71d (diff)
parent48be4e9cb6a730cdcecbd1d2db294406315f1d87 (diff)
Merge branch 'fix-interactions-null-deref' into 'develop'
Fix interactions tab null dereference See merge request pleroma/pleroma-fe!1707
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index dde9c93e..d499d3d6 100644
--- a/src/components/notifications/notifications.js
+++ b/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 () {