mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Ignore weblinks that don't exist when converting groups to lovelace config (#2488)
* Ignore weblinks that don't exist when converting groups to lovelace config * Simplify
This commit is contained in:
parent
1b2e052f05
commit
41554ab14d
@ -69,7 +69,7 @@ const computeCards = (
|
|||||||
type: "weather-forecast",
|
type: "weather-forecast",
|
||||||
entity: entityId,
|
entity: entityId,
|
||||||
});
|
});
|
||||||
} else if (domain === "weblink") {
|
} else if (domain === "weblink" && stateObj) {
|
||||||
const conf: WeblinkConfig = {
|
const conf: WeblinkConfig = {
|
||||||
type: "weblink",
|
type: "weblink",
|
||||||
url: stateObj.state,
|
url: stateObj.state,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user