Naoki427 hai 8 meses
pai
achega
dbf714ca9b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/app/src/components/PageView/PageView.tsx

+ 1 - 1
apps/app/src/components/PageView/PageView.tsx

@@ -89,7 +89,7 @@ export const PageView = (props: Props): JSX.Element => {
 
 
     const target = document.getElementById(decodeURIComponent(targetId));
     const target = document.getElementById(decodeURIComponent(targetId));
 
 
-    if (target) {
+    if (target != null) {
       target.scrollIntoView();
       target.scrollIntoView();
       hasScrolledRef.current = true;
       hasScrolledRef.current = true;
     }
     }