From f3db5d258e876d97111306b1ba7cfa36b6bc413f Mon Sep 17 00:00:00 2001 From: harrisonliu5 Date: Tue, 31 Oct 2023 14:15:30 +0800 Subject: [PATCH] fix: fix the devops page is block Signed-off-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 }