Skip to content

Commit

Permalink
fix: Fix workspace network policy
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Aug 6, 2020
1 parent ccbfa03 commit 6705f16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/workspaces/containers/BaseInfo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,13 @@ class BaseInfo extends React.Component {

renderNetwork() {
const workspace = this.store.detail
if (!globals.app.isMultiCluster && globals.app.hasKSModule('network')) {
if (!globals.app.isMultiCluster) {
if (!globals.app.hasKSModule('network')) {
return null
}

const networkIsolation = workspace.networkIsolation || false

return (
<Panel className={styles.network} title={t('Network Policy')}>
<div className={styles.item}>
Expand Down

0 comments on commit 6705f16

Please sign in to comment.