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

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

@@ -118,7 +118,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
     end: (item, monitor) => {
       // in order to set d-none to dropped Item
       const dropResult = monitor.getDropResult() as DropResult;
-      if (dropResult != null && dropResult.dropTarget === 'PAGE_TREE') {
+      if (dropResult != null && dropResult.dropTarget === DROP_TARGET) {
         setShouldHide(true);
       }
     },