diff --git a/src/forge/Server/reposyncer/component/addTaskModal.jsx b/src/forge/Server/reposyncer/component/addTaskModal.jsx index f19ae634..34bf0459 100644 --- a/src/forge/Server/reposyncer/component/addTaskModal.jsx +++ b/src/forge/Server/reposyncer/component/addTaskModal.jsx @@ -12,13 +12,13 @@ function DeleteBox({owner, projectsId, visible, setVisible, branchList, reload, const [platform, setPlatform] = useState(); // 已添加的仓库类型 const repoTypes = sync_repositories_unique.map(item=>{return item.type}) - const {type, external_branch_name, gitlink_branch_name, first_sync_direction} = getFieldsValue(); + const {external_branch_name, gitlink_branch_name, first_sync_direction} = getFieldsValue(); const showConfrimContent = external_branch_name && gitlink_branch_name && first_sync_direction; - const externalRepoBySelected = type && sync_repositories_unique.filter(item=>item.type.includes(type))[0] + const externalRepoBySelected = platform && sync_repositories_unique.filter(item=>item.type.includes(platform))[0] const externalRepoInfo = { address: externalRepoBySelected && externalRepoBySelected.external_repo_address, branchName: external_branch_name, - type + type: platform } const gitlinkRepoInfo = { address: `${window.location.origin}/${owner}/${projectsId}.git`, diff --git a/src/forge/Server/reposyncer/component/editStore.jsx b/src/forge/Server/reposyncer/component/editStore.jsx index d87f7a87..a4be910f 100644 --- a/src/forge/Server/reposyncer/component/editStore.jsx +++ b/src/forge/Server/reposyncer/component/editStore.jsx @@ -183,7 +183,7 @@ function EditStore(props){ )} -