fix(xo-server-usage-report): test if uuid exists

This commit is contained in:
badrAZ
2017-05-18 15:25:47 +02:00
parent 60c4673992
commit 6f79e8145e

View File

@@ -109,7 +109,11 @@ Handlebars.registerHelper('math', function (lvalue, operator, rvalue, options) {
return mathOperators[operator](+lvalue, +rvalue)
})
Handlebars.registerHelper('shortUUID', uuid => uuid.split('-')[0])
Handlebars.registerHelper('shortUUID', uuid => {
if(uuid !== undefined) {
return uuid.split('-')[0]
}
})
// ===================================================================