empty cluster goes with no battery limitation settings
This commit is contained in:
parent
c21f222f86
commit
4fa5ba60c8
|
|
@ -592,6 +592,8 @@ function SodistoreHomeConfigurationV2(props: SodistoreHomeConfigurationProps) {
|
||||||
{clusters.map((_slotCount, clIdx) => {
|
{clusters.map((_slotCount, clIdx) => {
|
||||||
const clKey = `Cluster${clIdx + 1}`;
|
const clKey = `Cluster${clIdx + 1}`;
|
||||||
const cluster = formValues.devices?.[invKey]?.Clusters?.[clKey];
|
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 charge = cluster?.MaxChargingCurrent ?? '';
|
||||||
const discharge = cluster?.MaxDischargingCurrent ?? '';
|
const discharge = cluster?.MaxDischargingCurrent ?? '';
|
||||||
const setClusterField = (
|
const setClusterField = (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue