mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 04:36:36 +00:00
Avoid error in map-card
This commit is contained in:
parent
87e4c209f4
commit
813c9014e5
@ -297,7 +297,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
||||
private async loadMap(): Promise<void> {
|
||||
[this._leafletMap, this.Leaflet, this._tileLayer] = await setupLeafletMap(
|
||||
this._mapEl,
|
||||
this._config!.dark_mode ?? this.hass.themes.darkMode
|
||||
this._config?.dark_mode ?? this.hass.themes.darkMode
|
||||
);
|
||||
this._drawEntities();
|
||||
this._leafletMap.invalidateSize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user