Skip to content

Commit a9eb4ae

Browse files
committed
[BugFix]JMX端口维护信息错误
1 parent cceff91 commit a9eb4ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ const ConnectorForm = (props: {
537537
setSelectedTabKey(undefined);
538538
try {
539539
const jmxPortInfo = JSON.parse(initFieldsValue.jmxProperties) || {};
540-
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxProperties });
540+
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxPort });
541541
} catch {
542542
form.setFieldsValue({ ...initFieldsValue });
543543
}
@@ -546,7 +546,7 @@ const ConnectorForm = (props: {
546546
useLayoutEffect(() => {
547547
try {
548548
const jmxPortInfo = JSON.parse(initFieldsValue.jmxProperties) || {};
549-
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxProperties });
549+
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxPort });
550550
} catch {
551551
form.setFieldsValue({ ...initFieldsValue });
552552
}

0 commit comments

Comments
 (0)