Skip to content

Commit

Permalink
[release-3.4] fix: Filter cd deployment location clusters options by …
Browse files Browse the repository at this point in the history
…host cluster name (#4165)

fix: filter cd deployment location clusters options

Signed-off-by: yazhou <yazhouhu@yunify.com>
Co-authored-by: yazhou <yazhouhu@yunify.com>
  • Loading branch information
ks-ci-bot and yazhouio committed Jul 18, 2023
1 parent 72fa6ad commit e9a0a41
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/Forms/CD/Advance/Placement/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ export default class Placement extends Component {

@computed
get clusters() {
return this.cdStore.clustersList.map(item => {
return {
label: showNameAndAlias(inCluster2Default(item.name), 'cluster'),
value: item.name,
server: item.server,
}
})
return this.cdStore.clustersList
.map(item => {
return {
label: showNameAndAlias(inCluster2Default(item.name), 'cluster'),
value: item.name,
server: item.server,
}
})
.filter(i => i.value === 'in-cluster')
}

@computed
Expand Down

0 comments on commit e9a0a41

Please sign in to comment.