From 546aa40bc935e731c214eb915484b4bc8016327b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8A=E9=83=A1?= Date: Tue, 21 Nov 2023 18:06:34 +0800 Subject: [PATCH] fix #713: duplicate field 'runtime_cluster' in swagger.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 上郡 --- docs/apidoc/swagger-3.0.json | 3 --- docs/apidoc/swagger.json | 3 --- packages/velaux-ui/src/pages/Cluster/index.tsx | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/apidoc/swagger-3.0.json b/docs/apidoc/swagger-3.0.json index 97982f706..3736109d4 100644 --- a/docs/apidoc/swagger-3.0.json +++ b/docs/apidoc/swagger-3.0.json @@ -11391,9 +11391,6 @@ }, "runtimeCluster": { "type": "boolean" - }, - "runtime_cluster": { - "type": "boolean" } } }, diff --git a/docs/apidoc/swagger.json b/docs/apidoc/swagger.json index f6703fb16..de58e2e10 100644 --- a/docs/apidoc/swagger.json +++ b/docs/apidoc/swagger.json @@ -8758,9 +8758,6 @@ }, "runtimeCluster": { "type": "boolean" - }, - "runtime_cluster": { - "type": "boolean" } } }, diff --git a/packages/velaux-ui/src/pages/Cluster/index.tsx b/packages/velaux-ui/src/pages/Cluster/index.tsx index a77f80641..0e0375348 100644 --- a/packages/velaux-ui/src/pages/Cluster/index.tsx +++ b/packages/velaux-ui/src/pages/Cluster/index.tsx @@ -101,7 +101,7 @@ class Cluster extends React.Component { (enableAddon || []).forEach((ele: { name: string; phase: boolean }) => { addonList.forEach((item: Addon) => { const isMatchName = ele.name === item.name; - const deploy = item.deployTo || { runtimeCluster: false, runtime_cluster: false }; + const deploy = item.deployTo || { runtimeCluster: false }; if (isMatchName && deploy.runtimeCluster) { addonMessage.push({ name: item.name, path: item.url || '' }); }