From fdce74d748f5d8a47b9ac653f71c8ad8b0a1cae7 Mon Sep 17 00:00:00 2001 From: KubeSphere CI Bot <47586280+ks-ci-bot@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:31:49 +0800 Subject: [PATCH] [release-3.4] fix: fix the devops page is block (#4241) fix: fix the devops page is block Signed-off-by: harrisonliu5 Co-authored-by: harrisonliu5 --- src/pages/workspaces/containers/DevOps/index.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/workspaces/containers/DevOps/index.jsx b/src/pages/workspaces/containers/DevOps/index.jsx index 952884266f5..08bfb4c6113 100644 --- a/src/pages/workspaces/containers/DevOps/index.jsx +++ b/src/pages/workspaces/containers/DevOps/index.jsx @@ -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 }