mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Fixed #325 - Temperature Profiles are blank when there's no data
This commit is contained in:
parent
c1d3853d81
commit
75337d4f1f
@ -38,7 +38,7 @@ beestat.component.card.temperature_profiles.prototype.decorate_contents_ = funct
|
||||
var chart_container = $.createElement('div');
|
||||
parent.appendChild(chart_container);
|
||||
|
||||
if (data.x.length === 0) {
|
||||
if (Object.keys(data.series).length === 0) {
|
||||
chart_container.style('filter', 'blur(3px)');
|
||||
var no_data = $.createElement('div');
|
||||
no_data.style({
|
||||
|
Loading…
x
Reference in New Issue
Block a user