UI: fix missing general config tiles with battery configured (#32140)
This commit is contained in:
parent
dff73b26db
commit
75eebf131b
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ export default {
|
|||
return store.state?.telemetry === true;
|
||||
},
|
||||
batteryControllable() {
|
||||
return (store.state?.battery ?? []).some((b) => b.controllable);
|
||||
return (store.state?.battery?.devices ?? []).some((b) => b.controllable);
|
||||
},
|
||||
batteryGridDischarge() {
|
||||
return store.state?.batteryGridDischarge === true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue