Skip to content

Commit

Permalink
newMeasurement
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn committed Sep 20, 2020
1 parent fd8c362 commit f6ab23e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/js/qmHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4228,7 +4228,7 @@ var qm = {
} else if (typeof src.defaultValue !== "undefined" && src.defaultValue !== null){
value = src.defaultValue;
} else {
throw "no value provided"
value = null;
}
var timeAt = src.trackingReminderNotificationTimeEpoch ||
src.startAt ||
Expand All @@ -4240,15 +4240,15 @@ var qm = {
var m = {
combinationOperation: src.combinationOperation || 'MEAN',
icon: src.icon,
inputType: src.inputType || unit.inputType,
maximumAllowedValue: src.maximumAllowedValue || unit.maximum,
minimumAllowedValue: src.minimumAllowedValue || unit.minimum,
inputType: src.inputType || (unit) ? unit.inputType : null,
maximumAllowedValue: src.maximumAllowedValue || (unit) ? unit.maximum : null,
minimumAllowedValue: src.minimumAllowedValue || (unit) ? unit.minimum : null,
pngPath: src.pngPath || src.image,
startAt: qm.timeHelper.toDate(timeAt),
startTime: qm.timeHelper.toUnixTime(timeAt),
unitAbbreviatedName: unit.abbreviatedName,
unitId: unit.id,
unitName: unit.name,
unitAbbreviatedName: (unit) ? unit.abbreviatedName : null,
unitId: (unit) ? unit.id : null,
unitName: (unit) ? unit.name : null,
upc: src.upc,
valence: src.valence,
value: value,
Expand Down Expand Up @@ -8880,9 +8880,9 @@ var qm = {
}
return arr;
},
find:function(v){
find: function(v) {
var nameOrId;
if(typeof v === "string" || data === parseInt(data, 10)){
if(typeof v === "string" || v === parseInt(v, 10)){
nameOrId = v;
} else {
nameOrId = v.unitId || v.defaultUnitId || v.defaultUnitAbbreviatedName || v.unitAbbreviatedName || v.id;
Expand Down

1 comment on commit f6ab23e

@mikepsinn
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

View recording of ionic_variables_spec.js
Cypress Dashboard

ionic_variables-ionic

BUILD LOG

Please sign in to comment.