Skip to content

Commit

Permalink
fix: Fix gitlab source repo options error
Browse files Browse the repository at this point in the history
Signed-off-by: yazhou <[email protected]>
  • Loading branch information
yazhouio authored Apr 9, 2024
1 parent ecf41c1 commit 6aa48df
Showing 1 changed file with 2 additions and 6 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

0 comments on commit 6aa48df

Please sign in to comment.