mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Fixes day to day rendering crashing if data contains a Profile Switch event without a profile
This commit is contained in:
@@ -904,7 +904,9 @@ daytoday.report = function report_daytoday(datastorage,sorteddaystoshow,options)
|
||||
if (treatment.cutting) {
|
||||
text = sign + ' ' + client.profilefunctions.profileSwitchName(treatment.cutting) + ' ' + '►►►' + ' ' + client.profilefunctions.profileSwitchName(treatment.profile) + ' ' + sign;
|
||||
} else {
|
||||
text = sign + ' ' + client.profilefunctions.profileSwitchName(treatment.profile) + ' ' + sign;
|
||||
if (treatment.profile) {
|
||||
text = sign + ' ' + client.profilefunctions.profileSwitchName(treatment.profile) + ' ' + sign;
|
||||
}
|
||||
}
|
||||
context.append('text')
|
||||
.style('font-size', 12)
|
||||
|
||||
Reference in New Issue
Block a user