Mao 4 лет назад
Родитель
Сommit
bef1749a4a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/components/Sidebar/PageTree/ItemsTree.tsx

+ 1 - 1
packages/app/src/components/Sidebar/PageTree/ItemsTree.tsx

@@ -104,7 +104,7 @@ const ItemsTree: FC<ItemsTreeProps> = (props: ItemsTreeProps) => {
     if (targetElem[0] != null && startFrom != null) {
     if (targetElem[0] != null && startFrom != null) {
       smoothScrollIntoView(targetElem[0] as HTMLElement, 0, startFrom);
       smoothScrollIntoView(targetElem[0] as HTMLElement, 0, startFrom);
     }
     }
-  }, [ancestorsChildrenData, rootPageData]);
+  }, [ancestorsChildrenData]);
 
 
   const onClickDuplicateMenuItem = (pageId: string, path: string) => {
   const onClickDuplicateMenuItem = (pageId: string, path: string) => {
     openDuplicateModal(pageId, path);
     openDuplicateModal(pageId, path);