mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-08-04 20:14:28 +02:00
Refactor bug fix
This commit is contained in:
2
dist/mushroom-strategy.js
vendored
2
dist/mushroom-strategy.js
vendored
File diff suppressed because one or more lines are too long
@@ -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.
|
||||||
|
Reference in New Issue
Block a user