diff --git a/src/js/qmHelpers.js b/src/js/qmHelpers.js index 71f73ee08b..d2ce2a9a9f 100644 --- a/src/js/qmHelpers.js +++ b/src/js/qmHelpers.js @@ -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){