mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Fixes an issue where treatment units were all rewritten on load, regardless of units (#7273)
This commit is contained in:
+5
-1
@@ -265,7 +265,11 @@ function init () {
|
||||
ddata.tempbasalTreatments = ddata.processDurations(tempbasalTreatments, false);
|
||||
|
||||
// filter temp target
|
||||
var tempTargetTreatments = ddata.treatments.filter(function filterTargets (t) {
|
||||
var tempTargetTreatments = ddata.treatments.filter(function filterTargets (tt) {
|
||||
|
||||
// Clone the treatment before modifying it
|
||||
let t = _.cloneDeep(tt);
|
||||
|
||||
//check for a units being sent
|
||||
if (t.units) {
|
||||
if (t.units == 'mmol') {
|
||||
|
||||
Reference in New Issue
Block a user