Commit 1915c57 yaojiping
committed
1 parent c76875c commit 1915c57 Copy full SHA for 1915c57
File tree 2 files changed +10
-9
lines changed
web/src/pages/System/Cluster
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ export default (props) => {
16
16
if ( mode === "agent" ) {
17
17
monitor_configs [ "node_stats" ] = { enabled : false } ;
18
18
monitor_configs [ "index_stats" ] = { enabled : false } ;
19
- } else {
20
- monitor_configs [ "node_stats" ] = { enabled : true } ;
21
- monitor_configs [ "index_stats" ] = { enabled : true } ;
22
19
}
23
20
form . setFieldsValue ( { monitor_configs } ) ;
24
21
} , [ mode ] ) ;
Original file line number Diff line number Diff line change @@ -594,12 +594,16 @@ class ClusterForm extends React.Component {
594
594
/>
595
595
)
596
596
}
597
- < MonitorConfigsForm
598
- form = { this . props . form }
599
- editValue = { editValue }
600
- visible = { this . state . monitored }
601
- collectMode = { this . state . collectMode }
602
- />
597
+ {
598
+ editValue ?. monitor_configs && (
599
+ < MonitorConfigsForm
600
+ form = { this . props . form }
601
+ editValue = { editValue }
602
+ visible = { this . state . monitored }
603
+ collectMode = { this . state . collectMode }
604
+ />
605
+ )
606
+ }
603
607
< MetadataConfigsForm
604
608
form = { this . props . form }
605
609
editValue = { editValue }
You can’t perform that action at this time.
0 commit comments