Skip to content

Commit f03d949

Browse files
author
zengqiao
committed
均衡设置修复
1 parent 9c1320c commit f03d949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

km-console/packages/layout-clusters-fe/src/pages/LoadRebalance/ClusterNorms.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const ClusterNorms: React.FC<PropsType> = ({ onClose, visible, genData }) => {
2626
form.validateFields().then((values) => {
2727
const params = values?.brokers?.map((item: any) => {
2828
const brokerId = nodeData?.filter((key) => key.brokerId === item)[0]?.brokerId;
29-
const newValue = brokerId && { brokerId, cpu: values?.cpu, disk: values?.disk, flow: values?.flow };
29+
const newValue = brokerId !== undefined && { brokerId, cpu: values?.cpu, disk: values?.disk, flow: values?.flow };
3030
return {
3131
clusterId: global?.clusterInfo?.id + '',
3232
value: JSON.stringify(newValue),

0 commit comments

Comments
 (0)