📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
'fix' TS7006: Parameter 'location' implicitly has an 'any' type.
Blue Mouse415dfdfd06e2
diff --git a/src/hoc/ScrollToTop.tsx b/src/hoc/ScrollToTop.tsxindex 66ac0a95b..f7ec50130 100644--- a/src/hoc/ScrollToTop.tsx+++ b/src/hoc/ScrollToTop.tsx@@ -32,7 +32,7 @@ const ScrollToTop: React.FC<IScrollToTop> = ({ children }) => {const history = useHistory()useEffect(() => {- const unlisten = history.listen((location) => {+ const unlisten = history.listen((location: any) => {const { hash, state } = location as IHistoryListenerif (!_isEmpty(state) && state?.scrollToTopDisable) {