Shun Miyazawa 4 лет назад
Родитель
Сommit
80a7786908
1 измененных файлов с 1 добавлено и 1 удалено
  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]);
 
   const onClickDuplicateMenuItem = () => {
-    if (pageData._id != null && pageData.path != null) {
+    if (!pageData.isEmpty) {
       openDuplicateModal(pageData._id, pageData.path);
     }
   };