Shun Miyazawa 4 years ago
parent
commit
80a7786908
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/components/PageList/PageListItemL.tsx

+ 1 - 1
packages/app/src/components/PageList/PageListItemL.tsx

@@ -58,7 +58,7 @@ export const PageListItemL = memo((props: Props): JSX.Element => {
   }, [isDeviceSmallerThanLg, onClickItem, pageData._id]);
   }, [isDeviceSmallerThanLg, onClickItem, pageData._id]);
 
 
   const onClickDuplicateMenuItem = () => {
   const onClickDuplicateMenuItem = () => {
-    if (pageData._id != null && pageData.path != null) {
+    if (!pageData.isEmpty) {
       openDuplicateModal(pageData._id, pageData.path);
       openDuplicateModal(pageData._id, pageData.path);
     }
     }
   };
   };