Fix edit cluster use error data

This commit is contained in:
KomachiSion 2021-01-21 09:36:47 +08:00
parent 3cfa183400
commit 4096026048

View File

@ -106,7 +106,7 @@ class EditClusterDialog extends React.Component {
const {
healthChecker = {},
useIPPort4Check,
defCkport = '80',
defaultCheckPort = '80',
metadataText = '',
} = editCluster;
const { type, path, headers } = healthChecker;
@ -139,8 +139,8 @@ class EditClusterDialog extends React.Component {
<Form.Item label={`${checkPort}:`}>
<Input
className="in-text"
value={defCkport}
onChange={defCkport => this.onChangeCluster({ defCkport })}
value={defaultCheckPort}
onChange={defaultCheckPort => this.onChangeCluster({ defaultCheckPort })}
/>
</Form.Item>
<Form.Item label={`${useIpPortCheck}:`}>