Naoki427 8 месяцев назад
Родитель
Сommit
dbf714ca9b
1 измененных файлов с 1 добавлено и 1 удалено
  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));
 
-    if (target) {
+    if (target != null) {
       target.scrollIntoView();
       hasScrolledRef.current = true;
     }