mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Merge pull request #4031 from nightscout/wip/fix-empty-profile
Fixes day to day rendering crashing if data contains a Profile Switch…
This commit is contained in:
@@ -899,6 +899,9 @@ daytoday.report = function report_daytoday(datastorage,sorteddaystoshow,options)
|
||||
});
|
||||
|
||||
function appendProfileSwitch(context, treatment) {
|
||||
|
||||
if (!treatment.cutting && !treatment.profile) { return; }
|
||||
|
||||
var sign = treatment.first ? '▲▲▲' : '▬▬▬';
|
||||
var text;
|
||||
if (treatment.cutting) {
|
||||
|
||||
Reference in New Issue
Block a user