empty cluster goes with no battery limitation settings

This commit is contained in:
Yinyin Liu 2026-05-19 13:36:58 +02:00
parent c21f222f86
commit 4fa5ba60c8
1 changed files with 2 additions and 0 deletions

View File

@ -592,6 +592,8 @@ function SodistoreHomeConfigurationV2(props: SodistoreHomeConfigurationProps) {
{clusters.map((_slotCount, clIdx) => {
const clKey = `Cluster${clIdx + 1}`;
const cluster = formValues.devices?.[invKey]?.Clusters?.[clKey];
// Hide clusters with no installed batteries — Information tab is source of truth.
if (cluster?.BatteryCount === 0) return null;
const charge = cluster?.MaxChargingCurrent ?? '';
const discharge = cluster?.MaxDischargingCurrent ?? '';
const setClusterField = (