mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +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> {
|
private async loadMap(): Promise<void> {
|
||||||
[this._leafletMap, this.Leaflet, this._tileLayer] = await setupLeafletMap(
|
[this._leafletMap, this.Leaflet, this._tileLayer] = await setupLeafletMap(
|
||||||
this._mapEl,
|
this._mapEl,
|
||||||
this._config!.dark_mode ?? this.hass.themes.darkMode
|
this._config?.dark_mode ?? this.hass.themes.darkMode
|
||||||
);
|
);
|
||||||
this._drawEntities();
|
this._drawEntities();
|
||||||
this._leafletMap.invalidateSize();
|
this._leafletMap.invalidateSize();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user