Skip to content

Commit

Permalink
if(!m.inputType && unit)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn committed Sep 21, 2020
1 parent fabff4f commit a9af919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/qmHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4260,7 +4260,7 @@ var qm = {
variableCategoryName: src.variableCategoryName,
variableName: src.variableName || src.name,
}
if(!m.inputType){m.inputType = qm.unitHelper.getInputType(unit.abbreviatedName, m.valence, m.variableName);}
if(!m.inputType && unit){m.inputType = qm.unitHelper.getInputType(unit.abbreviatedName, m.valence, m.variableName);}
return m;
},
fromNotification: function (n){
Expand Down

0 comments on commit a9af919

Please sign in to comment.