1
0
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:
Jon Ziebell 2023-01-27 08:17:07 -05:00
parent c1d3853d81
commit 75337d4f1f

View File

@ -38,7 +38,7 @@ beestat.component.card.temperature_profiles.prototype.decorate_contents_ = funct
var chart_container = $.createElement('div'); var chart_container = $.createElement('div');
parent.appendChild(chart_container); parent.appendChild(chart_container);
if (data.x.length === 0) { if (Object.keys(data.series).length === 0) {
chart_container.style('filter', 'blur(3px)'); chart_container.style('filter', 'blur(3px)');
var no_data = $.createElement('div'); var no_data = $.createElement('div');
no_data.style({ no_data.style({