about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/containers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-07-13 11:07:16 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-07-13 11:07:16 +0200
commit99f28c17dea35d0eec90a74c5fe95f60b6ad2f9e (patch)
treed977bc661f0c2ca33db52143c99ccf75bc44bb2e /app/javascript/flavours/glitch/containers
parent6e3d5cbca26995e99d6ca8b1e3191edc539d87eb (diff)
Fix scroll handling with modals
Diffstat (limited to 'app/javascript/flavours/glitch/containers')
-rw-r--r--app/javascript/flavours/glitch/containers/mastodon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/containers/mastodon.js b/app/javascript/flavours/glitch/containers/mastodon.js
index bcdd9b54e..131303fd3 100644
--- a/app/javascript/flavours/glitch/containers/mastodon.js
+++ b/app/javascript/flavours/glitch/containers/mastodon.js
@@ -41,7 +41,7 @@ export default class Mastodon extends React.PureComponent {
   }
 
   shouldUpdateScroll (_, { location }) {
-    return !(location.state && location.state.mastodonModalOpen);
+    return !(location.state?.mastodonModalKey);
   }
 
   render () {