fix(xo-server-usage-report): test if uuid exists
This commit is contained in:
@@ -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]
|
||||
}
|
||||
})
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user