mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed visualize broken if no address set
This commit is contained in:
parent
c19bf4145c
commit
0e7796f330
@ -404,7 +404,10 @@ beestat.component.card.three_d.prototype.decorate_controls_ = function(parent) {
|
||||
|
||||
// Sunrise/Sunset
|
||||
const floor_plan = beestat.cache.floor_plan[this.floor_plan_id_];
|
||||
if (floor_plan.address_id !== undefined) {
|
||||
if (
|
||||
floor_plan.address_id !== undefined &&
|
||||
floor_plan.address_id !== null
|
||||
) {
|
||||
const address = beestat.cache.address[floor_plan.address_id];
|
||||
|
||||
const times = SunCalc.getTimes(
|
||||
|
Loading…
x
Reference in New Issue
Block a user