takeru0001 5 anni fa
parent
commit
74fa9cc710
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/client/js/components/PageDuplicateModal.jsx

+ 1 - 1
src/client/js/components/PageDuplicateModal.jsx

@@ -195,7 +195,7 @@ const PageDuplicateModal = (props) => {
           type="button"
           className="btn btn-primary"
           onClick={duplicate}
-          disabled={(isDuplicateRecursively && isDuplicateRecursivelyExist && !isDuplicateRecursivelyWithoutExistPath) || (path === pageNameInput)}
+          disabled={(isDuplicateRecursively && !isDuplicateRecursivelyWithoutExistPath && existingPaths.length !== 0)}
         >
           { t('modal_duplicate.label.Duplicate page') }
         </button>