1
0
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:
Jon Ziebell 2022-08-25 20:55:19 -04:00
parent c19bf4145c
commit 0e7796f330

View File

@ -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(