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:
parent
1072492454
commit
8597845303
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user