From 0e7796f330ace772ef361efa4b0069639b7f26b7 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 25 Aug 2022 20:55:19 -0400 Subject: [PATCH] Fixed visualize broken if no address set --- js/component/card/three_d.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/component/card/three_d.js b/js/component/card/three_d.js index 24458f0..5d8a6f5 100644 --- a/js/component/card/three_d.js +++ b/js/component/card/three_d.js @@ -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(