aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Tumin <iamtakingiteasy@eientei.org>2022-12-11 18:50:34 +0300
committerAlexander Tumin <iamtakingiteasy@eientei.org>2022-12-21 23:59:38 +0300
commit48be4e9cb6a730cdcecbd1d2db294406315f1d87 (patch)
treeaf22210d0c55020dd37b90d96c09e2fc11d9cdfb /src
parent830b0008a293b7542ae140568c4c2e5587c4b71d (diff)
Fix notifications/interactions null dereference
Diffstat (limited to 'src')
-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 () {