takeru0001 пре 5 година
родитељ
комит
74fa9cc710
1 измењених фајлова са 1 додато и 1 уклоњено
  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>