Skip to content

Commit

Permalink
fix: fix the devops page is block
Browse files Browse the repository at this point in the history
Signed-off-by: harrisonliu5 <[email protected]>
  • Loading branch information
harrisonliu5 committed Oct 31, 2023
1 parent fe8e59f commit f3db5d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/workspaces/containers/DevOps/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,13 @@ export default class DevOps extends React.Component {
@computed
get clusters() {
const list = this.workspaceStore.clusters.data
.filter(i => i.isReady && i.configz?.devops)
.map(item => ({
label: item.name,
value: item.name,
disabled: !item.isReady || !item.configz?.devops,
cluster: toJS(item),
}))
.sort((a, b) => a.disabled - b.disabled)
if (list[0]) {
this.workspaceStore.cluster = list[0]?.value
}
return list
}

Expand Down

0 comments on commit f3db5d2

Please sign in to comment.