ryoji-s hace 2 años
padre
commit
0fed200905
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      apps/app/src/components/Common/Dropdown/PageItemControl.tsx

+ 2 - 2
apps/app/src/components/Common/Dropdown/PageItemControl.tsx

@@ -83,11 +83,11 @@ const PageItemControlDropdownMenu = React.memo((props: DropdownMenuProps): JSX.E
 
   // eslint-disable-next-line react-hooks/rules-of-hooks
   const renameItemClickedHandler = useCallback(async() => {
-    if (pageInfo == null || onClickRenameMenuItem == null) {
+    if (onClickRenameMenuItem == null) {
       return;
     }
 
-    if (!pageInfo.isDeletable) {
+    if (!pageInfo?.isDeletable) {
       logger.warn('This page could not be renamed.');
       return;
     }