]> cat aescling's git repositories - mastodon.git/commitdiff
Please CodeClimate
authorClaire <claire.github-309c@sitedethib.com>
Tue, 13 Jul 2021 11:49:40 +0000 (13:49 +0200)
committerClaire <claire.github-309c@sitedethib.com>
Tue, 13 Jul 2021 11:49:40 +0000 (13:49 +0200)
app/javascript/flavours/glitch/containers/scroll_container.js

index 740e266cbe93e8bbe9b6296d0e388f821741fa68..d21ff63687dbfdff1aee3da45719864c4e2b56bc 100644 (file)
@@ -6,11 +6,13 @@ import { ScrollContainer as OriginalScrollContainer } from 'react-router-scroll-
 const defaultShouldUpdateScroll = (prevRouterProps, { location }) => {
   // If the change is caused by opening a modal, do not scroll to top
   return !(location.state?.mastodonModalKey && location.state?.mastodonModalKey !== prevRouterProps?.location?.state?.mastodonModalKey);
-}
+};
 
 export default
 class ScrollContainer extends OriginalScrollContainer {
+
   static defaultProps = {
     shouldUpdateScroll: defaultShouldUpdateScroll,
   };
+
 }