Fished crash on null value
parent
c4ffdff19e
commit
a880c0078f
9
app.js
9
app.js
|
@ -287,9 +287,12 @@ handlebars = handlebars.create({
|
|||
return'';
|
||||
},
|
||||
upperFirst: (value) => {
|
||||
return value.replace(/^\w/, (chr) => {
|
||||
return chr.toUpperCase();
|
||||
});
|
||||
if(value){
|
||||
return value.replace(/^\w/, (chr) => {
|
||||
return chr.toUpperCase();
|
||||
});
|
||||
}
|
||||
return value;
|
||||
},
|
||||
math: (lvalue, operator, rvalue, options) => {
|
||||
lvalue = parseFloat(lvalue);
|
||||
|
|
Loading…
Reference in New Issue