Skip to content

Commit

Permalink
if(!nameOrId){return null;}
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn committed Sep 20, 2020
1 parent e838bac commit fabff4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/qmHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4247,7 +4247,7 @@ var qm = {
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,
pngPath: src.pngPath || src.image || (cat) ? cat.pngUrl : null,
startAt: qm.timeHelper.toDate(timeAt),
startTime: qm.timeHelper.toUnixTime(timeAt),
unitAbbreviatedName: (unit) ? unit.abbreviatedName : null,
Expand Down Expand Up @@ -9979,6 +9979,7 @@ var qm = {
} else {
nameOrId = v.variableCategoryId || v.variableCategoryName;
}
if(!nameOrId){return null;}
return qm.variableCategoryHelper.getByNameOrId(nameOrId);
}
},
Expand Down

0 comments on commit fabff4f

Please sign in to comment.