Refactor bug fix

This commit is contained in:
Aalian Khan
2023-09-11 11:33:46 -04:00
parent 178a2fe003
commit 0d3b0a9089
2 changed files with 2 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -86,12 +86,10 @@ class MushroomStrategy {
const exposedDomainIds = Helper.getExposedDomainIds(); const exposedDomainIds = Helper.getExposedDomainIds();
const area = info.view.strategy.options.area; const area = info.view.strategy.options.area;
const viewCards = [...(area.extra_cards ?? [])]; const viewCards = [...(area.extra_cards ?? [])];
let defaultExists = false;
// Create cards for each domain. // Create cards for each domain.
for (const domain of exposedDomainIds) { for (const domain of exposedDomainIds) {
if (domain === "default") { if (domain === "default") {
defaultExists = true;
continue; continue;
} }
@@ -190,7 +188,7 @@ class MushroomStrategy {
} }
} }
if (defaultExists) { if (!Helper.strategyOptions.domains.default.hidden) {
// TODO: Check if default is hidden // TODO: Check if default is hidden
// Create cards for any other domain. // Create cards for any other domain.
// Collect device entities of the current area. // Collect device entities of the current area.