浏览代码

fix disable

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>