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

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

@@ -58,7 +58,9 @@ export const PageListItemL = memo((props: Props): JSX.Element => {
   }, [isDeviceSmallerThanLg, onClickItem, pageData._id]);
 
   const onClickDuplicateMenuItem = () => {
-    openDuplicateModal(pageData._id, pageData.path);
+    if (pageData._id != null && pageData.path != null) {
+      openDuplicateModal(pageData._id, pageData.path);
+    }
   };
 
   const styleListGroupItem = (!isDeviceSmallerThanLg && onClickCheckbox != null) ? 'list-group-item-action' : '';