Shun Miyazawa hace 4 años
padre
commit
d56b73b85c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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' : '';