visuddhinanda 2 лет назад
Родитель
Сommit
b4c5582534
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      dashboard/src/pages/library/discussion/topic.tsx

+ 0 - 4
dashboard/src/pages/library/discussion/topic.tsx

@@ -15,10 +15,6 @@ const Widget = () => {
   const href = window.location.href.split("#");
   const anchor = href.length > 1 ? href[1] : undefined;
 
-  useEffect(() => {
-    const ele = document.getElementById(`answer-${anchor}`);
-    ele?.scrollIntoView();
-  });
   return (
     <>
       <CommentAnchor resId={discussion?.resId} resType={discussion?.resType} />