1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed visualize layer not loading if you don't have one yet

This commit is contained in:
Jon Ziebell 2022-08-04 22:13:33 -04:00
parent 1072492454
commit 8597845303

View File

@ -455,8 +455,10 @@ beestat.component.card.floor_plan_editor.prototype.get_title_ = function() {
* @return {string} Subtitle
*/
beestat.component.card.floor_plan_editor.prototype.get_subtitle_ = function() {
const floor_plan = beestat.cache.floor_plan[beestat.setting('floor_plan_id')];
return floor_plan.name;
if (beestat.setting('floor_plan_id') !== null) {
const floor_plan = beestat.cache.floor_plan[beestat.setting('floor_plan_id')];
return floor_plan.name;
}
};
/**