Commit 2db9934c authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team

model.js getInfoTime now return a dash (-) when info is empty or null

parent d93b530d
......@@ -486,7 +486,7 @@ Model.prototype = {
getInfoTime: function(time) {
var time = typeof time !== 'undefined' ? time : this.t
var info = "-"
if (typeof this.samples.info != 'undefined')
if (typeof this.samples.info != 'undefined' && this.samples.info != null && this.samples.info != "")
info = this.samples.info[time]
return info
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment