Skip to content

Commit

Permalink
fix #713: duplicate field 'runtime_cluster' in swagger.json
Browse files Browse the repository at this point in the history
Signed-off-by: 上郡 <[email protected]>
  • Loading branch information
上郡 committed Nov 21, 2023
1 parent 9268b88 commit 546aa40
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions docs/apidoc/swagger-3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -11391,9 +11391,6 @@
},
"runtimeCluster": {
"type": "boolean"
},
"runtime_cluster": {
"type": "boolean"
}
}
},
Expand Down
3 changes: 0 additions & 3 deletions docs/apidoc/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -8758,9 +8758,6 @@
},
"runtimeCluster": {
"type": "boolean"
},
"runtime_cluster": {
"type": "boolean"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/velaux-ui/src/pages/Cluster/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Cluster extends React.Component<Props, State> {
(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 || '' });
}
Expand Down

0 comments on commit 546aa40

Please sign in to comment.