Skip to content

Commit

Permalink
fix: Fix gitlab source repo options error (#4270)
Browse files Browse the repository at this point in the history
* fix: Fix gitlab source repo options error

Signed-off-by: 古月 <[email protected]>

* chore: Update yarn.lock

Signed-off-by: 古月 <[email protected]>

---------

Signed-off-by: 古月 <[email protected]>
  • Loading branch information
yazhouio authored Apr 11, 2024
1 parent ecf41c1 commit 5cef966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class GitLabForm extends React.Component {
render() {
const { formData, credentials } = this.props.store
const { formRef } = this.props
const { serverList } = this.state
const { serverList, projectList } = this.state

return (
<div className={styles.card}>
Expand Down Expand Up @@ -166,11 +166,7 @@ export default class GitLabForm extends React.Component {
>
<Select
name="gitlab_source.repo"
options={this.state.projectList.map(item => {
const owner = get(formData, 'gitlab_source.owner')
const repo = item.replace(`${owner}/`, '')
return { label: repo, value: repo }
})}
options={projectList}
placeholder=" "
clearable
/>
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10904,8 +10904,8 @@ react-file-reader@^1.1.4:

react-input-autosize@^3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/react-input-autosize/download/react-input-autosize-3.0.0.tgz#6b5898c790d4478d69420b55441fcc31d5c50a85"
integrity sha1-a1iYx5DUR41pQgtVRB/MMdXFCoU=
resolved "https://registry.yarnpkg.com/react-input-autosize/-/react-input-autosize-3.0.0.tgz#6b5898c790d4478d69420b55441fcc31d5c50a85"
integrity sha512-nL9uS7jEs/zu8sqwFE5MAPx6pPkNAriACQ2rGLlqmKr2sPGtN7TXTyDdQt4lbNXVx7Uzadb40x8qotIuru6Rhg==
dependencies:
prop-types "^15.5.8"

Expand Down

0 comments on commit 5cef966

Please sign in to comment.