Shun Miyazawa 4 년 전
부모
커밋
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) => {
     end: (item, monitor) => {
       // in order to set d-none to dropped Item
       // in order to set d-none to dropped Item
       const dropResult = monitor.getDropResult() as DropResult;
       const dropResult = monitor.getDropResult() as DropResult;
-      if (dropResult != null && dropResult.dropTarget === 'PAGE_TREE') {
+      if (dropResult != null && dropResult.dropTarget === DROP_TARGET) {
         setShouldHide(true);
         setShouldHide(true);
       }
       }
     },
     },